#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-01-21

Timestamps are in GMT/BST.

00:01:54raptorhere: this works: http://sam686.maxhushahn.com/upload/new_undo_system_working.diff
00:02:06raptorbut now the select loadout zone after undo is worse
00:03:31sam686maybe, the extents of zones may be wrong...
00:03:38raptorthat' what i'm thinking...
00:03:44sam686should make the renderer draw the extents...
00:06:26raptorEditorObject::renderInEditor looks liek a good place
00:12:16raptorah ha!
00:12:39sam686i used this: Rect r = getExtent(); UserInterface::drawRect(r.min.x, r.min.y, r.max.x, r.max.y, GL_LINE_LOOP);
00:12:59sam686i was in EditorObject::renderInEditor
00:14:33sam686looks like, extents don't properly work...
00:14:59raptoryeah, they show up when moving a vertex, but disappear when you do an undo
00:16:13sam686in gridDB.cpp, in DatabaseObject::DatabaseObject(const DatabaseObject &t), try adding mExtent = t.mExtent;
00:16:31raptorok
00:17:27raptorIT WORKS!
00:17:29raptorwow
00:17:34raptoris it working for you, too?
00:18:31sam686it works for polygons, it looks like
00:19:28sam686some items like ResourceItem, seems to set the extents extremely tiny when doing "move - undo - move"
00:19:57raptoryeah, their extents are just a point, it looks like
00:20:03raptoralso flags
00:21:11raptoruh oh
00:21:13raptorstill the bug
00:21:57sam686probably, mRadius don't get copied like it should..
00:21:58raptorthat test level i put on the wiki, still has the exact same problem
00:22:09sam686in item class
00:22:55raptoryeah, Core is a dot...
00:24:32raptorok, i'm going home, i'll be back in a little bit...
00:24:37sam686ok
00:24:54raptorso it looks like lots of objects have messed up extents and radius..
00:25:20raptor Quit (Remote host closed the connection)
00:48:08raptor has joined
00:48:08ChanServ sets mode +o raptor
00:48:16raptorok back
00:58:25raptorso the question: at what point are extents actually calculated?
01:05:39CrazyLinuxNerd Quit (Quit: Leaving)
01:39:49sam686the Extents is calculated when moving or changing points in Polygon
01:47:36sam686umm, i think all the point items is always zero size extents it seems, even without any such undo feature...
01:47:53raptorwhere do you see that?
01:48:19raptori guess that's OK, though...
01:48:20sam686the only time i see extent as not tiny dot is when loading a level
01:54:38raptori don't think extents are the problem... the issue is still there with the polygon item with that test level i put in the wiki
01:54:52sam686umm, i think this needs to change: Rect PointGeometry::calcExtents() {return Rect(mPos, 1);} (why 1?)
02:13:47raptori have no idea
02:27:14sam686ok, i may have pushed a change that fix mExtent, and fix tiny extents for all Item objects..
02:28:05sam686i was careful not to push your diff..
02:28:46BFLogBot - Commit f35c54050536 | Author: sam8641 | Log: Fix mExtent not being copied, fix Item's extent too tiny by adding Item::calcExtents
02:31:20raptorisn't it better to have smaller extents for point objects so they're more likely to be in a certain grid bucket?
02:32:18sam686i am not exactly sure, but there might be a big Item, like Asteroid
02:32:26raptoralso Core
02:32:31raptoris a large point item
02:32:58raptorsorry, i will be off and on all night - i have guests over...
02:33:04sam686extent too big don't matter much in editor anyway...
02:33:31sam686but, bigger extents seems to make it easier to select those items
02:53:34sam686g
02:53:39raptorsearching seems to still work ok with Core
02:53:40sam686oops, wrong chat..
02:53:57raptorturrets still recognize the edgtes not to shoot..
02:54:00sam686i was playing some bitfighter 015, and i tried to chat in bitfighter..
02:58:41LoneWolfy has joined
02:59:02LoneWolfydoes anybody know coding club pass?!?
02:59:07sam686Wone Wolf may have a problem with a password thing in "Coding club"
02:59:13sam686not sure, i don't know..
02:59:30LoneWolfy_k?
03:00:37LoneWolfy:|
03:00:40LoneWolfyUGH
03:01:14sam686probably ask karamazovapy .....
03:01:25karamazovapy?
03:01:47sam686its the password thing in "Coding club"
03:01:55sam686Wone wold wants to know
03:01:56karamazovapywe're done with class, so I cleared it just now
03:14:53LoneWolfyBut maybe you should keep it something like "Codin" or something
03:15:05LoneWolfybai
03:15:09LoneWolfy Quit ()
06:05:42raptor Quit (Remote host closed the connection)
06:17:45sam686 Quit (Ping timeout: 245 seconds)
06:27:50zoomber_mbp has joined
07:39:50zoomber_mbpoh hey zoomber
07:39:57zoomber_mbpi see your still logged in on my other computer
07:49:59Watusimoto has joined
07:55:15Watusimoto Quit (Ping timeout: 245 seconds)
08:09:34zoomber_mbp Quit (Quit: zoomber_mbp)
08:10:18Watusimoto has joined
08:14:57CrazyLinuxNerd has joined
09:09:07Watusimoto!bug
09:09:07BFLogBotTo enter a bug, please make sure it is reproducible and then go to http://code.google.com/p/bitfighter/issues/list | Also, see current buglist for 016: http://bitfighter.org/wiki/index.php?title=Buglist_016
09:09:17BFLogBot - Commit 3e62c80db738 | Author: watusim...@bitfighter.org | Log: Remove includes
09:09:19BFLogBot - Commit 1441d576f2bc | Author: watusim...@bitfighter.org | Log: Move WSM into database
09:09:20BFLogBot - Commit 0507e2878479 | Author: watusim...@bitfighter.org | Log: Merge
09:09:22BFLogBot - Commit e9a1f495b924 | Author: watusim...@bitfighter.org | Log: Change energy item symbol to match repair item symbol -- as per request by phantom
09:09:23BFLogBot - Commit fdf1363b86a4 | Author: watusim...@bitfighter.org | Log: Fix crash when exiting game
09:09:25BFLogBot - Commit ea4af9a12068 | Author: watusim...@bitfighter.org | Log: Whitespace
09:09:26BFLogBot - Commit 5ef6ebda5d33 | Author: watusim...@bitfighter.org | Log: Whitespace
09:09:28BFLogBot - Commit c094edab0d94 | Author: watusim...@bitfighter.org | Log: Whitespace
09:09:29BFLogBot - Commit aeda74060e7e | Author: watusim...@bitfighter.org | Log: Defensive assert
09:09:31BFLogBot - Commit f363409ae01e | Author: watusim...@bitfighter.org | Log: Merge
09:09:32BFLogBot - Commit fd10c088b5f0 | Author: watusim...@bitfighter.org | Log: Get a different database
09:45:48LordDVG has joined
10:05:21Watusimoto Quit (Ping timeout: 247 seconds)
10:47:51koda has joined
10:48:10koda Quit (Client Quit)
12:50:14Watusimoto has joined
13:38:55Watusimoto Quit (Ping timeout: 252 seconds)
13:44:08raptor has joined
13:44:08ChanServ sets mode +o raptor
13:50:06koda has joined
13:54:45raptor Quit (Remote host closed the connection)
15:14:33Watusimoto has joined
15:48:13raptor has joined
15:48:13ChanServ sets mode +o raptor
15:48:17raptorgood day!
15:49:34raptoroooo Watusimoto checked in..
15:51:03raptormust fix ocmpilng
15:55:03BFLogBot - Commit fdf86fea74f4 | Author: buckyballreaction | Log: Fix compiling
17:10:51raptor Quit (Ping timeout: 252 seconds)
17:12:18bobdaduck has joined
17:12:32bobdaduckyoyo
17:25:05Watusimoto Quit (Ping timeout: 240 seconds)
17:41:13LordDVG Quit (Quit: mjuza, better way for listening to music: sf.net/projects/mjuza/)
17:43:43LordDVG has joined
18:04:15koda Quit (Quit: koda)
18:15:09sam686 has joined
18:15:09ChanServ sets mode +v sam686
18:26:40bobdaduck Quit (Quit: Page closed)
18:38:56raptor has joined
18:38:56ChanServ sets mode +o raptor
18:39:16raptor Quit (Remote host closed the connection)
19:13:58Watusimoto has joined
19:34:50LordDVG Quit (Ping timeout: 245 seconds)
19:46:49Watusimoto Quit (Ping timeout: 252 seconds)
20:36:46LordDVG has joined
20:57:00raptor has joined
20:57:00ChanServ sets mode +o raptor
21:08:11Watusimoto has joined
21:08:20Watusimotohi
21:08:23raptorhi
21:08:32Watusimotoi am exhausted
21:08:42Watusimotocarrying 500lb boxes from ikea
21:08:46raptorha!
21:08:51raptorwe just got new couches...
21:08:56raptorfrom there
21:09:04raptoruh... in UT
21:09:08Watusimotoright
21:09:12WatusimotoI guessed
21:10:08Watusimotoam going to try to finishe what I started this morning, if i don;t fall asleep
21:10:13raptorok
21:10:16raptori'll cheer you on
21:10:21Watusimotoha
21:10:36raptorso i redid the undo system and the bug still existed
21:10:39raptorthe evil one
21:10:47Watusimotoevilist of bugs will be an easy fix, I think, if only I can find the right spot
21:10:59Watusimotoyes, I think the problem is with copying items
21:11:05raptorreally?
21:11:14Watusimotoand both undos will suffer the same problem
21:11:30Watusimotoyes; I think the coordinates of point items are not being copied correctly
21:11:43Watusimotomaybe my emails weren't clear
21:12:16raptori added: setActualPos(t.getActualPos());
21:12:26raptorin the copy contructor of 'Item'
21:12:34raptorand it didn't make a lick of difference
21:13:30raptorwhich reminds me, i have to read up on copy constructors - i don't actually know what they functionally do
21:14:58Watusimotothis isn't going to work. I'm going to bed early, I'll work some more tomorrow. today was just draining
21:15:06raptorok
21:15:09raptorgood choice
21:15:11raptoroh
21:15:19raptordo we wan tthe new undo system?
21:15:24Watusimotoso.... later! I'm convinced with another hour or two we'll have that bug fixed
21:15:39Watusimotohow is the performance on a large level (ctf3?)
21:15:54raptorwhat specific action should i do? copy/paste the whole thing?
21:16:03Watusimotodoesn't matter
21:16:10Watusimotothe same undo gets run either way
21:16:12raptorok
21:16:14raptori'll test
21:16:18raptorand post results later
21:16:59Watusimotook. see if you can get a handle on the memory usage as well; try doing 30 or so actions, that will fill up 30 stages of undo, and compare the memory usage
21:17:17raptorwhat way would you use to compare memory usage?
21:17:23Watusimotono idea
21:17:28Watusimotoactually
21:17:30raptorsounds good!
21:18:00WatusimotoI would probably look at windows program manager and see what's listed (or, rather, the sysinternals replacement I use). no idea if that is accurate
21:18:12Watusimotomaybe top, or ps on linux?
21:18:18raptorther eis a ksysguard
21:18:27raptora much nicer version of windows task manager... :)
21:18:39WatusimotoMy thinking is either the difference will be apparent or it won't
21:19:04raptorok
21:19:11Watusimotoyoour machine is so fast that I don;t know if you'll notice a performance difference
21:19:19Watusimotoeven if there is one
21:19:29raptori can profile... but i can check memory
21:19:32WatusimotoI suspect it will be more aparent on undoing than on saving an undo state
21:19:58Watusimotoundo on 016 shoudl be nearly instaneous
21:20:20raptorwith which system?, the new griddatabase one?
21:20:21Watusimotoon 015a, and your method, all objects in that vector need to be added to the database
21:20:26raptoryes
21:20:44Watusimotoswapping grid databases is nearly instant
21:20:49raptoryes
21:21:00raptorbut memory usage is larger, no?
21:21:33Watusimotoso maybe focus on memory; if memory is worse with the db switch, then maybe the 015a system is better?
21:22:08raptori think speed is favorable nowadays
21:22:21Watusimotoif memory is not hugely different, and performacne is not hugely different, then let's just keep what we've got
21:22:26raptorok
21:22:28Watusimotothe database method has a certain elegance
21:23:13Watusimotoso I guess I'm suggesting we do some measurements and make a decsion based on the results
21:23:19raptorok
21:23:21Watusimotoyou know, scientifically
21:24:54raptori wonder if i can profile memory...
21:25:00raptori'll run some trials
21:25:02Watusimotomaybe we could ask sam686 to see if he notices a performance difference on his machine
21:25:07raptorand detail my results
21:25:12Watusimotoif he doens't notice, no one will :-)
21:25:16raptorha!
21:25:41Watusimotook, signing off
21:25:55raptornight
21:50:35BFLogBot - Commit 79026aeacc7b | Author: buckyballreaction | Log: Minor casting issue
22:11:47Watusimoto Quit (Ping timeout: 248 seconds)
22:27:18raptor1. segfault when undoing in editor. used ctf3 and copy/pasted/undid the entire level: http://pastie.org/3227220
22:27:50raptoralso notice what happened to turrets/ffs and point items after the paste
22:29:10raptorit happens with both undo systems
22:29:41raptorbe back ina little bit
22:29:44raptor Quit (Remote host closed the connection)
22:51:59LordDVG Quit (Remote host closed the connection)
22:53:18koda has joined
23:22:27raptor has joined
23:22:27ChanServ sets mode +o raptor

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.