1
System / Failed to activate OpenGL context
« on: January 12, 2024, 11:48:21 pm »
I am making a terrain generation program, and I want to get it to run relatively quickly (currently it takes 5 seconds to render a small 600, 600 size screen).
Right now, I am threading each row of pixels to draw each colored sprite every row simultaneously. I am getting stuck with a runtime error that says,
Failed to activate OpenGL context: The resource is in use.
I was wondering it this is a problem of thread syncing or maybe there is another better way to do this, because I know that drawing thousands of sprites is inefficient but I don't know of a better way on SFML.
Right now, I am threading each row of pixels to draw each colored sprite every row simultaneously. I am getting stuck with a runtime error that says,
Failed to activate OpenGL context: The resource is in use.
I was wondering it this is a problem of thread syncing or maybe there is another better way to do this, because I know that drawing thousands of sprites is inefficient but I don't know of a better way on SFML.