smarthaert / phoenixlib

Automatically exported from code.google.com/p/phoenixlib
0 stars 0 forks source link

Huge perfomance drop after Toglle FullScreen in RunTime #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I change from/to fullscreen in runtime, after the change, my FPS drops from 
500 to 60 or 50 fps.

If I change this before start the game, there is no performance difference.

Code do Change :

  TPHXTexture.UnloadAll;
  Device.Display.FullScreen := not Device.Display.FullScreen;
  Device.ChangeDisplayMode(FMode);
  TPHXTexture.RebuildAll;

Original issue reported on code.google.com by wagenhei...@gmail.com on 11 Nov 2010 at 12:59

GoogleCodeExporter commented 9 years ago
It kindof sounds like VSync gets active, can you se if Timer.MeasureTime around 
all you rendering code changes?

Timer.MeasureTime(True);

RenderTime:= Timer.MeasureTime(False);

Original comment by andreas....@gmail.com on 13 Nov 2010 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by andreas....@gmail.com on 8 Aug 2013 at 2:11