3
« on: May 15, 2018, 04:04:06 pm »
Soo I'm currently developing a "virtual retro-like computer" to get into SFML and C/C++.
The problem currently is though that I want to draw pseudo-pixels (basically just many small rectangles that the user can manipulate, just like pixels) and if I go to a resolution of 200x80 (~16k pseudo-pixels) the performance drops to 60FPS (with a resolution of 51x19 I had about 400-500).
Is there any way that I can improve the performance? Or is it as fast as it can get with 16k shapes?
I also wanted to make the user decide what the resolution is via configuration file but if 200x80 gets to 55-60FPS (with a GTX 960, 16GB RAM and a FX-8350) I'll probably hard-code that..
Also, the way how I store these pixels is that the pixels are objects containing information about their color and their actual shape object and they are all stored in a 2-dimensional array, which gets iterated through to draw every pixel each frame, if that is of any meaning.