Update
Strewth, just when I thought everything was good, the reliability testing turns up a major problem with my new thread safe views, they would flicker and lose their textures for some unknown reason. Been working on it all week with very little progress, then thought of a slightly different approach and fixed it in an hour. TBH it didn’t occur to me sooner as it involved an old workaround code for the old way I dealt with threading, with my new model I could simplify it without hitting earlier threading issues.
Also combined with another issue with shaders I hadn’t anticipated, apparently uniforms are set per shader, not per context, and as I’m using threading and multiple shared contexts, I was getting baffling glitches, luckily I found this old post and all was good : https://www.khronos.org/message_boards/showthread.php/6172-Uniforms-on-a-shader-program-used-in-multiple-threads . I could just create a seperate shader for drawing to views on the main thread.
Anyway, back on track, update in the next couple of days, unless I discover anything else....








