refractor
Still Fresh
Well that depends, doesn't it. Compared to hand-crafted assembler, SDL/C++ is always going to be slower, but then you'd be insane to hand-code everything in assembler and/or make things hardware-specific (in the SDL case). It's all relative, of course. I could call C++ "slow" because I can shave a few cycles out of whatever assembly output it dumps and recompile. My version would be faster. Would it be worth me hand-optimising the compiler output each time? Hell no. If you want something to be as fast as possible, optimise the algorithm to hell, then use assembler. If C++ speed is fast enough then that's your prerogative. Horses for courses.GP2X_Future_Coder posted on Jul 5 2006 at 09:20 PM said:If you are a programmer and think SDL and C++ is slow then you are not much of a programmer/or just do not know how to optimize :blink:
So yeah, C++ is slow(er), but it has its uses...
(And I know how to optimise).
Last edited by a moderator: