Hey! I am almost ready to release a demo of my game, but I have a nasty problem with performance in the battle engine.
You see, on my computer, it runs at a constant 200fps for about 62-65seconds, and then woop it goes down to 150-160fps for no apparent reason!
If anyone could help me with that I would be forever a happy man.
Except for that it works pretty well, so even if you can't help, go check it out! :)
Here's a screenshot:
The yellow number at the top is the time in millisecond, and the white underneat it is the estimated FPS.
Here's what I need to know:
- On my comp it runs at a constant 198-200fps, but my comp is very powerful (athlon 64 3800+), so I need to know how fast it is on other comps (it is playable up to 90fps, below that it sucks hehe)
- At about 6200ms to 6500ms (everytime) it loses 'bout 50fps for no reason at all!! How come?
Things to note:
- To get in a fight you need to enter the first house you see (eh)
- Most of the code and comment are in french :/ sorry (but not function names, so it should be alright)
- You can toggle Berserk status change on monsters by pressing B or N, it has a nice effect so try it :) (but takes a lot of juice hehe)
- For some reason it is MUCH faster in full screen than windowed, so be sure you run it that way (press alt-enter)
- Oh, and monsters are hand-drawn by a friend of mine :) Visit her
here.
So, get it here:
ErayManBattleBeta.zip (1.76meg)
Tell me what you think! :)
Edit: This time it took 90s to slow down instead of the usual 65s, so you might have to be patient a little bit ;)
Edit 2: Oh I just found out that once it has slowed down, if you alt-tab it and come right back in the game everything goes back to the top speed! :'( Help me!!