low performance?

Jul 19, 2010 at 12:51 AM
Edited Jul 19, 2010 at 12:52 AM


I would test the performance of silversprite with a little tilemap.

i use a tile 32*32 load it and repeat it some times:

for (int z = 0; z < 3; z++)
     for (int x = 0; x < 35; x++)
          for (int y = 0; y < 20; y++)
              spriteBatch.Draw(tile, new Vector2(x * 32, y * 32), Color.White);

I thought thats not a real problem for it. in xna I have 60fps and a cpu load of 1%.

in silversprite, running in the browser or running out of it, it have only 40fps and i have a cpu load of 80% !!

thats good for nothing.... is this a bug or why there are so much differences between xna and silversprite?



Jul 20, 2010 at 6:49 PM

Yeah, I've experienced the same drop in framerate using n-squared tiling as well.. I'm not complaining tho, SilverSprite is still awesome to have available.. but I noticed that with larger, darker tiles the frame rate was lower than with smaller brighter tiles.. not sure if color would make any different or not, but just an observation.