|
5.0.3 More than 1 display and FPS |
komons
Member #11,083
June 2009
|
Hi Is this normal that FPS fall from 1800 to 54, when I create second display? To check FPS I use Fraps. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Post the minimal amount of code that produces this behaviour for you. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Thomas Fjellstrom
Member #476
June 2000
|
Having more than one "context" open will likely slow things down, but it shouldn't drop that far. -- |
komons
Member #11,083
June 2009
|
Okay I make sample code, and surprise, work well! The bug is in my code. I discovered that loaded font can be used in only first display. In another displays font just make it slow. :< But all displays have the same format. So why? Here is a sample code with font used: space - create new display |
Thomas Fjellstrom
Member #476
June 2000
|
komons said: But all displays have the same format. So why? Any resource that has a texture attached, is also tied to the display you initially created it for. The easiest way to fix that is to just load the font again when the second display is set as the current display/backbuffer. -- |
|