-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
On a 23x40 grid, we are getting between 50 to 22 fps, best case vs. worst case.
Neither of these numbers are acceptable since all we're drawing right now is the background.
I want to speed this up
I had two idea for how to do this.
- Take the mBox of the current map, render all of the tiles that are in view as one Texture, and draw that large texture every iteration. The camera will contain information as to whether or not it has moved. If it has moved, we re-create the large texture.
- Save the image of the map to the hard drive and just have the mBox move around this one image as need. This would further speed up the program because we wouldn't have to build up another texture if the camera moved.
Both ideas require me writing something that can combine textures, which I'm not sure how difficult that will be since I haven't researched it. It can't be too hard to figure out.
The 20x43 map lookups are killing us and either way we choose here we will reduce the load they cause significantly.
I guess I'll start with the first idea and then if we want/need we can evolve it into idea two.
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels