'Flip' Memory Usage
BlitzMax Forums/BlitzMax Beginners Area/'Flip' Memory Usage
| ||
I have been messing around with some of my games and have found something a little weird. In one old, graphics-heavy game, I get around 120-125 frames per second, but in another game I just started that has very few graphics, I get around 50 fps. I tried eliminating different functions and eventually found that the without the 'Flip' command, my frame rate is around 300, but when I add it, it drops to 50. Why would one game run so fast while the other is slow when they are roughly the same? Even if I eliminate all code and just have 'flip', the game runs at 50fps, when the aforementioned game drawing all its graphics runs twice as fast. |
| ||
Your system is probably running at 50Hz and Flip will use that unless you tell it otherwise (so no matter what you're drawing you will never ever get it to go quicker than 50fps). Try using Flip False - it will probably go a lot faster as vsync goes out the window. Watch out for tearing though. |
| ||
My other game is running at 120 FPS right now though... |
| ||
The default behaviour of Flip changed at some point in one of the Blitzmax updates. |
| ||
Did you open the screen using a different screen mode /hz rate? |
| ||
Memory usage? |
| ||
Windowed, or full screen mode? |
| ||
Windowed...same hz rate... |