Orkie
Super Duper Mega GP Mania
gdb is incredibly useful for applications, what are you on about?
Think commercial cartoon animation runs at around 18 fps, 12 is pretty acceptable, security footage goes low as 8 and still looks ok. I've been doing this to drop frames when the processing gets too long, seems to work well though I rather liked your state machine, my next main loop will look different.Furyhunter said:If it does, it'll probably become Robi: Genesis, a Game Maker project of mine. (yes, I know, Game Maker. Introductory but still a bit awkward to say on such forums).
I fixed the problems, now there's only one thing seperating the Windows and gp2x executables: Windows draws at 60fps, but the Gp2x is drawing about half as slow.
You wouldn't happen to know any nice framerate scripts that work across multiple machines, would you? Right now, as you probably saw, I'm just using SDL_Delay(1000/TICRATE) (ticrate is 60). I'm guessing linux, or the gp2x, doesn't have as many/has more tics per second as Windows?
Sure, if you need that sort of thing, an excellent choice, install it on your gp2x, hook up a bob and plug in a keyboard, get an xserver and ddd too, why not, if that's what you need and you think that's efficient.Orkie said:gdb is incredibly useful for applications, what are you on about?
I prefer text files because adding debug info or removing optimization changes things making the debugger less than true combat conditions. My usb cable does not reach the loo or travel well on the train. Bizarre, yes, but the best debugger is still not to introduce any.Squidge said:You don't need a BoB or a Keyboard - all you need is a usb lead. GDB can save countless hours finding out why your application doesn't work, and if you don't want to learn anything new, just run your application with it, and if it crashes, it'll tell you the exact source file and line in your program that caused the crash (along with a nice back trace if you want to, so you can see what called the function that caused the crash).
But if you prefer to use text files instead, thats your choice. It just seems a little bizzare when there are free options available that can save you all that hassle.
lest push water uphill.Sphinxter said:I prefer text files because adding debug info or removing optimization changes things making the debugger less than true combat conditions.
YakumoFuji said:lest push water uphill.Sphinxter said:I prefer text files because adding debug info or removing optimization changes things making the debugger less than true combat conditions.
see what happens is, you add debug info, find bug... fix bug... create release version without debug info.. omg!
not true combat conditions? you shouldnt have a 'release' version with debug info anyway. but if your creating 'debug' versions for testing without debug info, well your just plain stupid.
Actually testing what the user will be running, how stupid.
A little harsh don't you think? It's up to each person how they decide to debug there software. If they want to wear out there sd card with constant text file creation/deletion, spend several hours adding countless 'printf' statements, etc to debug there apps rather than using a debugger, then I'd say we just let them. At least they now know an alternative, easier solution exists if they wish to use it.YakumoFuji said:not true combat conditions? you shouldnt have a 'release' version with debug info anyway. but if your creating 'debug' versions for testing without debug info, well your just plain stupid.
Squidge said:A little harsh don't you think? It's up to each person how they decide to debug there software. If they want to wear out there sd card with constant text file creation/deletion, spend several hours adding countless 'printf' statements, etc to debug there apps rather than using a debugger, then I'd say we just let them. At least they now know an alternative, easier solution exists if they wish to use it.YakumoFuji said:not true combat conditions? you shouldnt have a 'release' version with debug info anyway. but if your creating 'debug' versions for testing without debug info, well your just plain stupid.
Personally, my makefile generates two executables - a debug version and a release version. I generally always use the release version unless I stumble across a not too obvious bug, in which case I switch to the debug version, find it, kill it, and then recompile.
How tolerant, may you never have to work in an environment where there is no debugger.
Considering my day job is an embedded software engineer, that happens regularly; So I just use whatever tools are available to make my life easier. If there is a debugger, I'll use it, but if all I get is is an LED that I can toggle on and off (or even worse, nothing whatsoever), then so be it.Sphinxter said:How tolerant, may you never have to work in an environment where there is no debugger.
Squidge, I insist you stop using any electrical appliances! What if you are stranded on a desert island and don't have any? Sphinxter has an excellent point! :rolleyes:Squidge said:I certainly wouldn't make my life more difficult however by refusing to use a debugger when one is available, and it is practical to do so.
Squidge said:Considering my day job is an embedded software engineer, that happens regularly; So I just use whatever tools are available to make my life easier. If there is a debugger, I'll use it, but if all I get is is an LED that I can toggle on and off (or even worse, nothing whatsoever), then so be it.Sphinxter said:How tolerant, may you never have to work in an environment where there is no debugger.
I certainly wouldn't make my life more difficult however by refusing to use a debugger when one is available, and it is practical to do so.
Gee me too. Never said I wouldn't use one, I just very, very rarely if ever need to.
But you have the gp2x specific code in a seperate file, right? And this file is different on your laptop and gp2x, so both versions get optimised for the system they are running on?kevcal said:Using allegro at the mo on the gp2x, which means I actually write it to work on my linux laptop and copy it across to the gp2x as needed. This way I can debug a lot faster on the laptop - problem is when I have started to put in specific code to HW blit...