#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2011-11-14

Timestamps are in GMT/BST.

00:17:00watusimotowell
00:17:00watusimotoit looks like chunks of the xbm are mirror imaged
00:17:00watusimoto32 bit image
00:17:00watusimoto4 columns of 8 bits each
00:17:00watusimotoeach colum is mirror imaged
00:17:00watusimotomaybe
00:18:00watusimotomaybe the problem is low-bit v high bit
00:19:00watusimotoso if I have an array of chars... how do I easily reverse the bits in each char?
00:20:00sam686when a is a char?
00:23:00sam686to reverse bits in a char, then for each char, a = ((a >> 4) & 0x0F) | ((a << 4) & 0xf0); a = ((a >> 2) & 0x33) | ((a << 2) & 0xcc); a = ((a >> 1) & 0x55) | ((a << 1) & 0xaa);
00:23:00watusimotothat did it
00:24:00watusimotohttp://graphics.stanford.edu/~seander/bithacks.html#BitReverseObvious
00:24:00watusimotorunning every byte of gimp's output through b = (b * 0x0202020202ULL & 0x010884422010ULL) % 1023; fixes it
00:25:00watusimotook, this needs MAJOR cleanup, will check in tomorrow.
00:25:00watusimotogood night
00:25:00sam686ok, there is other ways of reversing bits..
00:25:00watusimotothis seems the fastestm and it fits on one line of code
00:26:00watusimotobut whatever, it runs once on startup. I'm just happy I can make icons in gimp now
00:26:00sam686the for loop might not make that the fastest way...
00:26:00watusimotofastest would be to preprocess the data and save it reversed
00:26:00watusimotobut it doesn't matter -- this is fast enough.
00:27:00sam686many compiler optimizer can speed up code in ways that you don't think about it...
00:27:00watusimotoso we'll have an easy way to create custom pointers; black and white only. 16, 24, 32 pixels only; transparency supported. Think of what you want!
00:28:00watusimotogood night
00:28:00sam686ok, later..
00:31:00sam686oh, 64- bit division might be very slow on a 32 bit compiled binaries
00:32:00watusimoto Quit (Ping timeout: 240 seconds)
01:54:00raptorhi
01:55:00raptorwhat did watusimoto have to do??
01:55:00raptorXBM?
01:55:00raptorthe format is supposed to be XPM
01:56:00raptorthey are related but different
01:56:00raptorwas watusimoto using the wrong one?
02:11:00koda Quit (Quit: koda)
02:17:00sam686http://208.107.52.15/bitfighter/bitstest.cpp (bit reverse 3 operation turns out to be the slowest on my computer, from http://graphics.stanford.edu/~seander/bithacks.html#BitReverseObvious )
02:17:00raptorlet me test..
02:18:00sam686if your CPU is 64 bit, then your results will be different...
02:18:00raptorah
02:18:00raptorwill the results be accurate?
02:21:00raptoroh well, i can't compile in linux..
02:21:00sam686umm, i forgot to use optimizations (debug) here is my real test with optimization. http://208.107.52.15/bitfighter/bitstest_results.txt
02:21:00sam686its my 32-bit CPU that can't really handle 64-bit numbers very good..
02:22:00raptoryeah makes sense
02:22:00raptorI still think watusimoto was converting to the wrong format...
02:23:00sam686to compile in linux, fill in the "getTimer()" function for highest accurate timer value (and remove "Sleep" if it exists)
02:23:00raptorspeaking of timers
02:23:00sam686line 47 of bitstest.cpp
02:23:00raptorwhat do you think about converting bitfighter to microseconds?
02:24:00sam686converting to microseconds might take a while, and is it even worth it?
02:25:00raptoryeah - i was just thinking about higher tick accuracy with frame rates and such
02:26:00sam686there is no such refresh rate of up to 1000 Hertz for monitors yet, my crt monitor can go up to 162 Hertz at 640 x 480.
02:26:00raptoroh, haha
02:27:00raptori wasn't thinking about that - just that when you set maxfps to like 100 it's usually 93 or something because of loss of precision
02:27:00sam686if your FPS (Frame per second) is higher then refresh rate, you not going to see all frames..
02:28:00sam686it might be "Sleep" that might not be very accurate...
02:29:00raptorthat could be
02:29:00raptorok, side questoin - do you remember what I was working on before I got involved with the joystick stuff?
02:29:00sam686could code in a small hack that will slightly go back in time to prevent less then 100 fps..
02:32:00sam686not sure what you were working on... 1. renaming HunterNexusObject, 2. umm i don't know..
02:33:00sam686but, there is still some SFL fullscreen problems...
02:33:00raptoroh yes!
02:33:00sam686SDL (not SFL)
02:33:00raptorthat was it
02:34:00raptorlet me look at that..
02:35:00raptorit happens when you change resolution and bitfighter is in fullscreen, correct?
02:36:00sam686yes, change resolution while bitfighter is running in window mode, then switch to fullscreen..
02:36:00raptorok
02:36:00raptori think i know the fix
03:19:00raptorok, there doesn't seem to be a way to get the desktop resolution after you call SDL_SetVideoMode
03:19:00raptor:(
03:20:00raptorSDL_GetVideoInfo() will get it if you haven't called SDL_SetVideoMode yet (like upon initialization) but after that, it just returns the SDL window information
03:23:00raptorso sadly, i cannot fix that issue...
03:23:00raptorwith SDL at least... although SDL 1.3 has it..
03:23:00sam686thats only one problem (wrong fullscreen size after changing resolution), there is other fullscreen problems including a taskbar failing to hide if always on top
03:23:00raptorok, that happens on XP, but not on windows 7
03:24:00raptoris default 'always on top' for windows XP?
03:24:00sam686there is plenty of players that still use windows XP, which probably have taskbar always on top by default..
03:24:00raptorok
03:25:00raptori'll br back in a bit..
03:26:00sam686later..
03:31:00BFLogBot - Commit c144cf4fae7c | Author: buckyballreaction | Log: Typo
04:02:00raptorok back
04:03:00raptornow for research into fake_fullscreen and windows xp taskbar
04:04:00sam686taskbar not hidden doesn't only happen in windows XP, it happens on linux (Ubuntu) too. http://208.107.52.15/upload/bottom_bar_not_hidden_fullscreen.png
04:04:00raptoraww man..
04:10:00raptori wonder if the answer is to provide the option for real fullscreen in the INI?
04:15:00raptori think i have to study the SDL source code...
04:16:00sam686option to go real or fake fullscreen witn INI option might be a good idea...
04:17:00sam686problem is SDL fullscreen is not the same as GLUT (and FreeGlut) fullscreen which GLUT have no fullscreen problem on my windows xp and linux.
04:18:00raptoryeah, there is something that SDL is not doing to force the window z-index be really high
04:18:00raptorthat GLUT did
04:34:00raptorok, i'm asking in the #SDL room
04:34:00raptorbecause I can't find anything
04:34:00raptori'm going to code an INI option
04:34:00raptorwhat should the default be?
04:37:00sam686umm, not sure what it should be default to..
04:38:00sam686real fullscreen have some problems, expecially not being able to move mouse across multiple monitor screens while in fillscreen like GLUT lets me / anyone do that..
04:39:00sam686mouse is mostly unused in game when using a joystick game controller..
04:41:00sam686SDL real fullscreen in my windows XP have problems with mouse get stuck at top left corner when bitfighter minimize (ALT + TAB)
04:41:00raptorthat's no fun
04:43:00sam686its SDL trying to grab and lock the mouse when in fullscreen (when cursor is hidden), which is rather a "NO no", when simply getting mouse position is good enough
04:46:00sam686it seems like lots of other people have a moust getting stuck at top left corner problem on minimize. http://www.google.com/search?q=sdl+mosue+get+stuck+minimize
04:47:00raptorOOooo
04:47:00raptori think i can solve it...
04:48:00raptorright after i implement the real fullscreen switch in the INI...
04:49:00sam686if that can be solved, then i guess we could go to real fullscreen by default as most users don't use more then one monitor..
04:56:00raptorsam686: can I have you test a patch?
04:56:00sam686ok
04:57:00raptorhttp://sam686.maxhushahn.com/upload/fakefullscreenINI.diff
04:57:00raptori can't test it because real fullscreen and fake fullscreen are identical on my machine
04:57:00raptorthey switch fast and work just as flawlessly
04:58:00raptorcan you apply that patch and adjust the INI setting to make sure it really is switching between fake and real fullscreen?
05:01:00sam686took a while to compile...
05:02:00raptorsorry :(
05:05:00sam686it does seem to work, difference with fake fullscreen is it doesn't minimize (Alt Tab), but instead puts windows on top of fullscreen.
05:05:00raptorthat is normal for fake fullscreen for you?
05:06:00sam686fullscreen don't minimize with alt+tab in GLUT
05:06:00raptorok that makes sense
05:07:00sam686only real SDL fullscreen causes bitfighter fullscreen minimize on alt+tab
05:07:00raptorgood, i'll commit, then work on the fixing mouse grab
05:09:00raptorok sam686: try this patch to see if it fixes mouse in real fullscreen for you: http://sam686.maxhushahn.com/upload/disable_mousegrab.diff
05:12:00BFLogBot - Commit 515e2be296d5 | Author: buckyballreaction | Log: Add INI option "UseFakeFullscreen" to use fake or real fullscreen with SDL. Default fake for now..
05:12:00sam686use still stuck at top left corner...
05:12:00raptorargh!
05:12:00raptorok have another idea...
05:17:00raptoroh, haha
05:17:00raptorok another patch:
05:18:00raptorhttp://sam686.maxhushahn.com/upload/1disable_mousegrab.diff
05:18:00raptori put it in the wrong place
05:19:00sam686mouse still stuck at corner..
05:19:00raptornoooooo
05:19:00raptorman
05:20:00sam686i wonder if SDL_WM_GrabInput have no effect on fullscreen?
05:20:00raptorthat's what I'm thinking...
05:21:00sam686maybe a different version of SDL.dll might fix the problem?
05:22:00raptormaybe...
05:22:00raptorbut i think we want to stay with SDL 1.2.14
05:23:00sam686whats the difference on 1.2.13 ?
05:23:00raptorhttp://www.libsdl.org/release/changes-1.2.html
05:24:00raptorjust lots of fixes...
05:25:00raptori should compile SDL from the tip - there have been many bugfixes since 1.2.14
05:25:00sam686some bug fix makes another bug...
05:25:00raptorhaha, true
05:26:00sam686i wonder if a bug fix "Improved mouse input responsiveness for first-person-shooter games." produced a mouse stuck at corner bug?
05:29:00raptorwhen is it stuck again? after changing back to windowed mode?
05:29:00sam6861.2.13 to 1.2.14, more then half of bug fix is for linux only anyway... that leaves with 8 windows only fix + 10 global fix
05:31:00raptorlooks liek the fix was put in SDL mercurial shortly after 1.2.14 release
05:31:00sam686i will need to go, later, until tomorrow...
05:31:00raptorok
05:31:00raptorgood night
05:31:00sam686as in go to a night bed..
05:31:00raptorsleep well
06:13:00raptorok, i have newest SDL compiled
06:16:00raptorhttp://sam686.maxhushahn.com/upload/SDL-1.2.4.rev6509.7z
06:16:00raptorput the SDL files in that archive into the lib/ folder and relink bitfighter; make sure that the new SDL.dll gets into the exe/ folder
06:16:00raptorand retest the mouse problem
06:18:00Patrick_Chewing has left
06:33:00raptor Quit (Ping timeout: 260 seconds)
06:33:00raptor has joined
06:33:00ChanServ sets mode +o raptor
07:13:00koda has joined
07:16:00raptor Quit (Remote host closed the connection)
07:36:00koda Quit (Quit: koda)
08:16:00kodax has joined
08:17:00kodax Quit (Remote host closed the connection)
08:19:00kodax has joined
11:15:00CrazyLinuxNerd has joined
14:10:00raptor has joined
14:10:00ChanServ sets mode +o raptor
14:16:00raptorgood morning!
14:16:00CrazyLinuxNerdGood Afternoon Sir.
14:21:00raptorgood afternoon!
14:21:00raptorsam686: you awake yet?
14:24:00watusimoto has joined
14:24:00ChanServ sets mode +o watusimoto
14:28:00raptorhi watusimoto
14:29:00watusimotohey there
14:29:00raptorso i added an INI option for people to use real fullscreen
14:29:00raptorin case fake fullscreen doesn't work so well
14:30:00raptorbut sam686 has a problem where switching to windowed mode make the mouse cursor disappear or get stuck with real fullscreen on windows
14:30:00raptordid you have that problem with real fullscreen?
14:32:00CrazyLinuxNerd... wait hold on.. people play bf in fullscreen? :-S
14:33:00raptormaybe i'll just wait for sam686 to test
14:33:00raptorCrazyLinuxNerd: yeah, supposedly...
14:33:00raptori never do - but then most of my 'play' is testing
14:34:00CrazyLinuxNerdI set mine to windowed 1024x768 :-)
14:36:00CrazyLinuxNerdbut when you got bitfighter spread across two monitors at 1440x900 each, kinda annoying to have the ship slap bang in the middle of them both.. ha :-)
14:36:00CrazyLinuxNerd(full screen that is)
14:37:00watusimotoI don't recall that problem
14:37:00watusimotoI play in fullscreen when I play
14:37:00watusimotobtw
14:41:00raptorok
14:41:00raptorwell i compiled a new SDL.dll with a supposed fix
14:41:00raptori guess i'll just wait for sam686
14:43:00CrazyLinuxNerd.dll? :/
14:43:00raptoryeah - i have a windows and mac VM so I can diagnose problems on all platforms
14:44:00CrazyLinuxNerdwhat does .dll do? I thought windoze ran .exe?
14:44:00raptorbut i pretend i don't do anything for windows so watusimoto has to write the README
14:44:00raptorin windows .dll = .so in linux
14:44:00CrazyLinuxNerdah right ok :-)
14:44:00watusimotohey -- I saw that!
14:44:00CrazyLinuxNerd made himself look like a fool
14:45:00raptori know nothing about windows!
14:45:00raptorwatusimoto: yes the docs say XPM
14:46:00raptorand when I export to XPM from gimp it looks exactly like the format the docs show
14:46:00watusimotothe documentation is wrong. the docs also say you can't use a color image.
14:46:00watusimotoxpm is a color format
14:46:00watusimotoyou are being mislead by the arrow ascii art graphic, I believe?
14:46:00raptori thought both were color formats
14:46:00watusimotoxpb is a bitmap format
14:46:00watusimotoall ones and zeros
14:47:00raptorit's just that you use the sample code to convert from XPM to SDL data
14:47:00watusimotopacked into bytes
14:47:00watusimotothta demo essentially builds an xbm from an xpm in a particularly hacky manner
14:47:00raptorahh...
14:47:00raptorok
14:47:00watusimotoexport directly to xbm and you have the packed bytes already
14:47:00watusimotoexcpet in the wrong endian
14:47:00raptornow i get it
14:48:00watusimotoluckily, one fo the bit twiddler methods fixed that
14:48:00watusimotoin just 3 ops per byte
14:48:00raptoryeah, that's a great site
14:48:00watusimotofinally got to use it!
14:48:00raptorhaha
14:54:00CrazyLinuxNerdgotta love hotmail :-) --
14:54:00CrazyLinuxNerdRunning as fast as we can
14:54:00CrazyLinuxNerdIn progressMoving items to your old folder
14:57:00CrazyLinuxNerdyup, that's about normal, now i remember why i don't use it anymore..
14:57:00CrazyLinuxNerd
14:57:00CrazyLinuxNerdAn error occured
14:57:00CrazyLinuxNerdClose
14:57:00CrazyLinuxNerdThere was a problem with the Windows Live Hotmail service (a temporary network connectivity issue that has nothing to do with your computer). Please try again.
15:06:00raptorbe back in a bit
15:06:00raptor Quit (Remote host closed the connection)
15:11:00CrazyLinuxNerdbhahaha, this made me laugh, i cleared out my inbox on hotmail..
15:11:00CrazyLinuxNerdWow, you've got a very clean inbox! (Did you know you can receive messages from other email accounts?)
15:24:00watusimotoha
15:59:00raptor has joined
15:59:00ChanServ sets mode +o raptor
15:59:00raptorhello again
16:00:00CrazyLinuxNerdYellow
16:46:00raptorback to work..
16:47:00raptorso watusimoto, next tuesday i'll be gone for a week with no internet access
16:48:00Flash_Gardena week without pornography. bold man.
16:55:00CrazyLinuxNerdhaha
16:57:00CrazyLinuxNerdB r b
16:57:00CrazyLinuxNerd Quit (Quit: Leaving)
17:00:00raptorFlash_Garden!!
17:00:00raptoryou're around?
17:03:00watusimotook, have fun!
17:03:00sam686sam686: you awake yet? Guess!
17:03:00raptorwell hello
17:03:00sam686hi
17:03:00watusimotoI'l be away for the next couple of days myself, with unknown internet
17:03:00raptori will expect a fully feature frozen and hardened bitfighter when i get back...
17:04:00sam686laser weapon idea? http://bitfighter.org/forums/viewtopic.php?t=1005#p8156
17:04:00raptorsam686: can you test this newly compiled SDL?: http://sam686.maxhushahn.com/upload/SDL-1.2.4.rev6509.7z
17:04:00raptorput everything in the /lib folder
17:04:00raptorthen make sure the DLL gets into the exe folder
17:05:00raptortest for the mouse cursor getting stuck in windows xp
17:05:00watusimotowe had a feature frozen bitfighter before we did the joysticks.ini :-)
17:05:00raptoron real fullscreen
17:05:00raptorhaha i know!
17:05:00raptorbut it's so much nicer now
17:10:00sam686that version of sdl seem to fix mouse stuck at top left corner,
17:10:00raptorsweet!\
17:10:00raptorany new problems?
17:10:00sam686one more problem with mouse, mouse goes back to the middle when mouse pointer hides or shows..
17:11:00raptorwas that with the old SDL?
17:11:00sam686yes
17:11:00raptorok
17:11:00raptori will commit the new SDL
17:11:00raptorfor windows
17:12:00sam686mouse pointer hides when pressing keyboard button on the menu, then shows again because it somehow got moved to the middle..
17:13:00sam686possible solution is to change cursor to a blank one, instead of hiding the cursor pointer..
17:13:00raptorneat idea - or maybe not hide the cursor?
17:14:00sam686i don't think we want the pointer to show in-game...
17:14:00raptori was thinking about for menus
17:15:00sam686i guess...
17:17:00sam686oh, looks like pressing ALT hides the cursor and moves mouse back to the middle....
17:17:00sam686in menus
17:17:00sam686wonder why that doesn't happen on windowed mode, only fullscreen...
17:18:00raptori have no idea
17:20:00sam686switching to real fullscreen seems kind of slower compared to fake fullscreen for me..
17:20:00raptorit will be for most people
17:20:00raptorbecause SDL will have dedicated hardware video resources
17:20:00raptorso it frees up resources that are no longer needed (like for other applications)
17:21:00raptorthen when you switch back it has to load them all up again
17:23:00sam686i wonder which sdl code show_cursor(SDL_DISABLE) takes, that causes mouse pointer to go back to middle...
17:28:00watusimoto Quit (Ping timeout: 248 seconds)
17:30:00sam686if you look at this video http://www.youtube.com/watch?v=xv8vYizYYW4 it looks like SDL is doing some set mouse position tricks when that wasn't really needed at all. (when mouse pointer is hidden and fullscreen)
17:30:00sam686still does it as of the version you gave me..
17:32:00raptori'm not sure exactly what I'm seeing...
17:32:00sam686mouse pointer keeps resetting at the middle, somehow my video recorder shows pointer even though it was really hidden...
17:33:00raptorhuh, interesting
17:33:00BFLogBot - Commit 7ddf833b7b6b | Author: buckyballreaction | Log: Update SDL 1.2.14 to SDL rev 6509 (a04171d6fa11) to fix mouse stuck problem on windows
17:33:00sam686sdl seem to do it by counting how far mouse went from the middle, and using its own coordinate..
17:34:00sam686and not using the real mouse coordinate as when not in fullscreen or when showing mouse pointer..
17:35:00sam686hiding mouse cursor fails to hide mosue cursor (the hourclass or whatever you call that) on my recorder
17:35:00raptorthere is some in-game logic that adjusts the in-game axes-cursor because openGL doesn't map to window coordinates 1:1
17:36:00sam686yes, but SDL mouse cursor going back to middle got to be SDL, i think
17:36:00raptoryeah - it must do all its calculation from the middle, is my guess
17:36:00sam686as in, the real mouse pointer don't follow the green crosshair in the game..
17:37:00sam686and i think that is what causes the mouse go back to middle problem when hiding mouse cursor...
17:40:00kodax Quit (Quit: Sto andando via)
17:42:00raptormaybe this can help?: http://sdl.beuc.net/sdl.wiki/SDL_WarpMouse
17:44:00sam686it might work, good luck trying to set the mouse position back to where it was everytime mouse pointer hides.
17:44:00raptorhaha, yeah
17:44:00raptorok, so it looks like it works on linux because linux has a mouse relative movement change setting
17:45:00sam686its a little bit hacky, better off fixing problem in SDL instead.
17:46:00sam686or, somehow, we want to trick the SDL into thinking the mouse pointer is not hidden like a blank cursor, so mouse won't go back to the middle...
17:47:00sam686i wonder why hiding mouse cursor causes problem with mouse going back to the middle, doesn't make much sense...
17:48:00raptorI think because relative mouse motion is disabled in windows for some reason...
17:48:00raptor'true' relative mouse motion
17:54:00sam686ok, a simple ShowCursor(false); does it without mouse going back to the middle, but i think that function is windows only..
17:56:00raptorShowCursor(SDL_DISABLE);
17:56:00raptorworks on all systems
17:57:00sam686mine seem to like this: int ShowCursor(BOOL show)
17:58:00sam686only problem with that is, it seem to hide even when mouse cursor is up on the title bar of window where sdl hide cursor doesn't hide it like that...
17:59:00sam686seems strange to resize bitfighter window without the cursor showing..
17:59:00sam686but can be used for fullscreen for avoiding SDL bugs..
18:08:00sam686users that use touch screen (absolute mouse pointer), you can't physically move the user's finger with setMousePosition, or that will cause problems...
18:09:00raptoralready working on a mobile port? :)
18:10:00sam686not yet...
18:10:00sam686but I do have some software called joy2mouse that have an option for absolute mouse..
18:12:00sam686right now in my windows xp, absolute mouse causes problem with sdl fullscreen and mouse hidden...
18:17:00raptoreverything i read about this problem - people are using SDL 1.3 instead
18:17:00raptorbut that's because they are distributing statically compiled games
18:17:00raptornot open source
18:21:00sam686new problem, i can't change input mode to keyboard when joystick is plugged in...
18:22:00watusimoto has joined
18:33:00watusimoto Quit (Ping timeout: 258 seconds)
18:38:00raptorgreat!
18:41:00sam686there, i fix it...
18:42:00raptorthanks!
18:42:00raptorsorry, busy day at work...
18:43:00BFLogBot - Commit bbdb36670ce0 | Author: sam8641 | Log: Fix problem with not able to change input to keyboard when joystick is plugged in
18:47:00LordDVG has joined
19:28:00LordDVG Quit (Remote host closed the connection)
19:45:00CrazyLinuxNerd has joined
20:29:00koda has joined
21:01:00watusimoto has joined
21:38:00raptorso are we really in a feature freeze now? :)
21:38:00raptormajor features, at least..?
21:47:00watusimotoexcept my new game type
21:47:00raptoroh yeah..
21:48:00watusimotosam is the only one to attempt a new game type
21:48:00watusimotobut I think it will be pretty easy
21:48:00CrazyLinuxNerd will wait until full feature freeze, to then suggest a new feature
22:24:00raptorCrazyLinuxNerd: what is your idea?
22:25:00CrazyLinuxNerdnone haha, I was joking :-)
22:26:00CrazyLinuxNerdunless of course you fancy adjusting bitfighter aircraft to go around map instead of map around aircraft.. :-)
22:26:00raptorlike pacman?
22:27:00CrazyLinuxNerdhaha
22:27:00CrazyLinuxNerd... not exactly
22:27:00CrazyLinuxNerdthink car racing games, some cars are on a pole (effect) while map goes around vehicle, where as others have car go around the track
22:28:00CrazyLinuxNerdmotorstorm and ridgeracer are two to compare, easily spottable which is which
22:30:00CrazyLinuxNerdbut, i know for a fact, to do that, it would take a very very long time :-)
22:30:00CrazyLinuxNerdbasically re-code the whole physics section of game..
22:30:00CrazyLinuxNerdso don't worry haha :-)
22:31:00raptorok :]
22:32:00CrazyLinuxNerdof course, if you want to give ya self some work go ahead i don't mind :-D... but don't expect to make the xmas deadline xD
23:06:00watusimotochecking my cursor stuff in
23:06:00raptoroh boy
23:06:00raptorgood luck with merge!
23:07:00watusimotouh oh
23:07:00watusimotojust to warn you, there is a new class, Cursor, in a file called Cursors.cpp/.h
23:07:00raptorok
23:07:00watusimotomaybe we want to rename that to Cursor?
23:07:00raptorwill there be more than one?
23:09:00sam686is "Cursor" class inside a "Zap" namespace or no?
23:10:00watusimotono conflicts
23:10:00watusimotosam yes
23:10:00raptorphoew
23:10:00watusimotoso, a couple of decisions
23:11:00watusimoto1) rename Cursors to Cursor (easier now than after added to makefile and sam's vc++ project)
23:11:00watusimoto2) there are two cursors in the editor, a move cursor and a white pointer
23:11:00watusimotoafter the white pointer gets activated, the black pointer is goine
23:11:00watusimotogone
23:12:00watusimotoso... do we create a black pointer (and replace the wite one), or do we start off with the white one?
23:12:00watusimoto(does that make sense)
23:12:00watusimotoI'm really sleepy
23:12:00watusimotothis code is not quite optimized, but it seems to work well enough
23:13:00watusimotoI guess I'm leaning towards all white cursors
23:13:00raptori'll get used to what ever cursor, as long as i can see it
23:14:00raptorrename now better than later
23:14:00BFLogBot - Commit 4250005a58f9 | Author: watusim...@bitfighter.org | Log: Cursors in the editor!
23:14:00BFLogBot - Commit 797ff867150c | Author: watusim...@bitfighter.org | Log: Merge
23:15:00watusimotoit will be easy to create new cursors, though I'd rather stick to fairly standard ones cribbed from Windows
23:15:00watusimotoif we need any more
23:15:00raptorcool
23:15:00raptordare i pull and try to compile?
23:17:00sam686just to let Watusimoto know about speed of reverse bits, three operation is quite slow... Here my speed results. http://208.107.52.15/bitfighter/bitstest_results.txt
23:17:00sam686i tested the speed with this. http://208.107.52.15/bitfighter/bitstest.cpp
23:17:00watusimotowell, we only do it once, right at startup
23:17:00sam686ok..
23:18:00sam6867 operations method is like 8 times faster then 3 operations..
23:18:00watusimotoand we only reverse 32x32/8 * 2 bytes
23:18:00watusimotoand I may reduce one fo the cursors to 16x16
23:18:00watusimotowait... it is??
23:19:00watusimotoI'll swap in the 7-op method then
23:19:00watusimotowhy not?
23:19:00watusimotolink errors!
23:19:00sam686on my speed test, the lower the better..
23:19:00watusimotodoing a clean rebuild
23:20:00raptorerrorS!!
23:20:00raptormain.cpp:1311:7: error: reference to ‘Cursor’ is ambiguous
23:21:00raptoryou can't use the name 'Cursor'!!!!
23:21:00raptorit's already taken in the X11 libraries on linux
23:21:00sam686its because 3 operation method relys on a slow % (remainder of a division), and also a slower 64-bit numbers
23:22:00sam686and 7 operation don't use 64-bit, and no division..
23:23:00raptor!!
23:24:00watusimotoalas, 7 op reverse is for 32 bit nums, we have 8 bits
23:25:00watusimotoI can try to modify
23:25:00raptorumm, i compile 64 bit on linux
23:25:00raptorjust FYI
23:27:00watusimotoyes, but my cursors are unsigned chars
23:27:00watusimotoregardless of platform
23:27:00raptorthat's fine - i'm just thinking about the bit twiddling algos...
23:28:00sam686looking at 32 bit vs 64 bit CPU code, and 32 bit vs 64 bit integer speeds, http://www.passmark.com/forum/showthread.php?t=3348 it shows 64-bit divide is very slow
23:28:00watusimotoonly 8 bits need twiddling
23:28:00raptorah ok
23:28:00raptornevermind then
23:28:00sam686divide ( / ) or remainder of division ( % ) is still doing the slow division..
23:28:00raptorsam686: that's eight years old
23:28:00raptoroh wait
23:29:00raptorwrong date, sorry
23:29:00sam686yes, wrong (join date), real date was in 10-24-2011, 07:08 AM
23:32:00sam686bit shift ( << >> ) and bit and, or, xor ( & | ^ ) is very fast, probably equally as fast as adding or subtracting for most CPU
23:37:00watusimotohrm
23:37:00watusimotoAvira is flagging my latest build of bf as a virus
23:38:00watusimotoand won't let me build anymore
23:38:00raptorsweet!
23:39:00raptorjust ditch the scanner and practice good web surfing habits
23:39:00raptor:)
23:39:00sam686is it something wrong with the latest SDL binaries or not?
23:41:00sam686i don't use antivirus, I only use a good firewall... so when i use a program that can't connect to internet, i adjust the firewall..
23:41:00CrazyLinuxNerdraptor: Better yet.. don't use windows :p
23:41:00sam686raptor already use linux (mostly)
23:42:00CrazyLinuxNerdsam686: I'm aware of that :-)
23:42:00sam686usually linux don't have such antivirus software, is there?
23:43:00raptori've seen linux viruses by the way
23:43:00raptorlinux usually has network virus scanners
23:43:00raptorsince it used as a server mostly
23:43:00raptorand will scan windows files (like with e-mail attachments)
23:43:00CrazyLinuxNerdyes, believe it or not Eset, a common windows anti-virus maker, now has a Linux Eset Anti-Virus :o
23:43:00CrazyLinuxNerdtheres also clamav
23:44:00raptoryes, that's one of the main ones
23:44:00CrazyLinuxNerdme i do the job without protection :-) no av's here :-)
23:45:00CrazyLinuxNerdone thing on linux you do have to watch out for is mainly rootkits..
23:48:00sam686i often think of an antivirus as CPU eating, memory eating programs...
23:48:00sam686my computer is just slow...
23:48:00CrazyLinuxNerdTo be honest, as long as you are not downloading illegal stuff, or viewing bad websites.. you should be okay :-)
23:49:00BFLogBot - Commit b30136684f8c | Author: watusim...@bitfighter.org | Log: More efficient bit twiddling, use white cursor throughout game
23:49:00BFLogBot - Commit be36b365a577 | Author: watusim...@bitfighter.org | Log: Rename Cursors ==> Cursor
23:50:00raptorwatusimoto: did you see my compiling problem?
23:51:00watusimotoare you having a problem?
23:51:00raptorthe class 'Cursor' is already taken by the X11 C API
23:52:00sam686its in a namespace "Zap", right?
23:52:00CrazyLinuxNerdmaybe bfcurser or something could be used instead? or zapcurser? unlikely to run into conflicts then.
23:52:00raptoryes but C doesn't see namespaces
23:52:00watusimotoI installed avira when my children prevailed on me to install a certain binary of uncertain provenance
23:52:00raptorhaha
23:52:00watusimotooh crap
23:52:00watusimotoso... I have to get up early to get to the train station
23:53:00watusimotonot sure what to do about cursor
23:53:00watusimotodo you have any ideas?
23:53:00raptorrename it...
23:53:00watusimototo
23:53:00raptorto 'Cussor'
23:53:00raptorok not really
23:53:00watusimotodo we need to rename the class or just the file
23:53:00raptornot the files
23:53:00CrazyLinuxNerdclass
23:53:00raptorclass
23:53:00watusimotoBfCursor?
23:54:00raptorwell, there may be a namespace workaround...
23:54:00sam686the mouse pointer line (or the lag) seems a little short...
23:54:00raptornot sure
23:54:00watusimotosam-- ??
23:54:00sam686i will screenshot my real system cursor..
23:54:00watusimotowell, we can call it whatever we want
23:55:00watusimotosam -- that cursor is the windows standard
23:55:00watusimotoraptor, if you want me to rename it, I'll do it... otherwise it;s in your hands.
23:56:00watusimotobecause I'm going to bed as soon as I see sam's screen shot
23:56:00raptorI will do some research tonight and do the renaming myself
23:56:00raptordon't worry about it
23:57:00watusimotoI'm not :-)
23:57:00watusimotoif you can;t thik of anything, BfCursor works for me. If you have a better name, great
23:57:00raptorPointer
23:57:00sam686http://208.107.52.15/bitfighter/cursor.gif
23:57:00sam686the right is my system cursor on my windows xp
23:58:00watusimotoI think win7 is different
23:59:00CrazyLinuxNerdhow about the linux curser? :-D
23:59:00watusimotothis should fix the problem:
23:59:00watusimotohttp://forums.techarena.in/customize-desktop/1221291.htm
23:59:00sam686i wonder how mac cursor look like?

Index Search ←Prev date Next date→

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