3D speed
Blitz3D Forums/Blitz3D Beginners Area/3D speed
| ||
I'm in the process of writing a simple game using 3D graphics modes. My PC is Athlon 2.1Ghz with Geforce 4, and everything is timed to operate with that. I've just tested the game with a P4 1.7Ghz with a geforce 2 MX and I was surprised by how much slower it is. I want the game to run at a similar speed on different specs of machines, so I need some advice on how to check this and then code it into the game. I was using a game loop to include renderworld and updateworld after moving entities, then at the end of the loop using just Flip. I found that Flip 0 speeds it up a bit. I was also going to do a simple for-next loop at the start of the game to test the processor, and then factor in a delay if the processor is too fast, but the two machines I tested end up with similar results, so it must be the graphics card that is causing the drastic difference in performance. Any ideas on: 1. How to test the graphics performance(speed of machine) in a way that is transparent to the user so I can factor in the correct delay. 2. Is there a better way of doing the in game loop to keep it level for all machines? Thanks |
| ||
1) Forget it, it's a wrong way to do this... 2) http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=gamemorduun03212002.html |
| ||
thanks Mustang, I'll go over it in the morning. Never had this problem with the C64!! lol |
| ||
Or this: http://www.blitzbasic.com/codearcs/codearcs.php?code=9 Andy |