2 ms·
with multithreaded rendering, is it possible to use SDL ? anecdotally, in my cpu based ray-tracers (i have one in c++ and python so far) , i have found that SD
by signa11 5y ago
with multithreaded rendering, is it possible to use SDL ?
anecdotally, in my cpu based ray-tracers (i have one in c++ and python so far) , i have found that SDL based rendering causes noticeable slowdowns to become quite useless after the initial novelty wears off.
- corysama 5y agoI've checked the code under the hood of SDL and it does pretty much the best you can do for fast uploads of an image from the CPU to the GPU. My CPU-based ray tracer uses the code I linked. SDL_LockTexture, go wide with threads writing into the locked buffer, SDL_UnlockTexture. If I skip the actual ray tracing, I get 1400 FPS uploading a 1024x1024 image.