I have an application, which generates image. Each frame is completely different and can not be accelerated by using of textures or sprites.
I want to draw with high rate, but best I got with SDL is about 8 fps at 2560x1440 by using SDL's canvas.draw_point
. I'd like to push it to 60 fps or more.
I feel I'm doing something wrong. What is the proper approach to this problem?
My 'computations' are on separate threads, so I can dedicate a whole thread to a simple copy from a memory array to (whatever technology requires).
I want to do it under X using Rust, so any X or cross-plaform library (including a pure C) is ok, but I feel that the problem is not within library, but in my 'per pixel' approach. How to do it right?