While working on a game I noticed after a certain amount of enemies were created the game started to lag, how do you get rid of lag? Do you increase the framerate or something?
-Thanks, Variant
Printable View
While working on a game I noticed after a certain amount of enemies were created the game started to lag, how do you get rid of lag? Do you increase the framerate or something?
-Thanks, Variant
Try a timer based movement if it is a scrolling type game. The timer system works the same for all computers.
Marv
I don't understand what you mean.
-Thanks, Variant
Code more efficiently? There's no simple solution for that. ;)
You could check out HWA which should increase your FPS dramatically, but it's not compatible with some extensions.
First of all what in the world does HWA stand for??
-Thanks, Variant
variant, by chance do you have the MMF Tech Manual from my site? There is an explanation for timer based movement. And I agree with Looki.
Marv
Hardware Acceleration. Currently in beta, you can download it from the forums.Quote:
Originally Posted by variant
But if I had to guess I would say its most likely to just how you're coding something. Could be repeatedly creating an object because you didn't add a limit like "only one action when event loops". HWA could help if its just because you have tons of objects on the screen at once, but first I'd make sure it isn't a mistake in your events when creating or shooting an object.
Hardware-acceleration. Your graphics card will render the actives, counters etc. on the screen, that's what 3D games do, too.
Install it.
Open your mfa.
Go to the application properties => runtime options.
Change the display mode from Standard to Direct3D 9.
That's it.
Note that some extension like Lens are not compatible.
No I'm afraid I haven't. I feared it would come to that. It looks like I may have to remake my game engine. :(
-Variant
I will do that as soon as I finish and backup all my projects.Quote:
Originally Posted by Looki
-Variant