Disappearing Windows & Performance Problems
Posted: Mon Apr 28, 2008 06:52
Hello,
I've been experimenting with cegui widgets to create an overhead map to track possibly hundreds of continuously updating entities. In the process I ran into a couple of issues.
I've created a new widget that's basically a radio button that displays a small icon. Then I parented a bunch of those to the background image of my overhead map. As a test, each frame I move the images around the map.
The first thing I noticed was that the setproperty method was killing my frame rate for just a few hundred or so entities.
Then I was surprised to find a limit to the number of icons I could create. After 967, gui elements start to disappear and reappear when I click the mouse around.
I'm very curious what's going on. Is it inappropriate to use cegui to display game entities? Is there a faster way to set the position? Also, is there a hard limit to the number of windows?
I'm using pyogre. These things happen with either opengl or the d3d renderer. I'm using Taharez.
Thx in advance.
-Greg
I've been experimenting with cegui widgets to create an overhead map to track possibly hundreds of continuously updating entities. In the process I ran into a couple of issues.
I've created a new widget that's basically a radio button that displays a small icon. Then I parented a bunch of those to the background image of my overhead map. As a test, each frame I move the images around the map.
The first thing I noticed was that the setproperty method was killing my frame rate for just a few hundred or so entities.
Then I was surprised to find a limit to the number of icons I could create. After 967, gui elements start to disappear and reappear when I click the mouse around.
I'm very curious what's going on. Is it inappropriate to use cegui to display game entities? Is there a faster way to set the position? Also, is there a hard limit to the number of windows?
I'm using pyogre. These things happen with either opengl or the d3d renderer. I'm using Taharez.
Thx in advance.
-Greg