VBGamer |
|
RE: GameSpeed The Gilb (0 replies, 0 views) (2000-Jun-1) Aha - looks like someone has just found out why it's hard to be a good VB game programmer... Hehehe! Game programming is an art because not only are game programmers brilliant at only making bits of code execute at any time, but they are also brilliant at optimising code to do as little as possible. It's little things everywhere which make a game run at an acceptable FPS.
Here's a tip - forget optimising this game, but on your next one, develop it a little slower and start with the game engine, enhancing it, making use of memory, using RAM, video memory, and all that stuff. Use binary arithmetic to speed up your code by doing shifts instead of divides. Once the engine is done, find out what takes the most time to execute, will that code be used extensively? If so, can you make it faster? (Code that is executed often needs to be faster). Mix your languages and especially Assembly because it's so darn fast! Remember that stuff on late and early binding posted on this bbs? Read it and used the info to make things faster?
There's so many ways to optimise your code that you could optimise your code to be faster, but it'd be easier to rewrite the game engine probably :-) |