I've got a very intensive frag shader that can take minutes to finish.
With a single draw call, it hits the TDR and crashes the app. If I split it into lots of smaller draw calls, opengl takes a ton of them up to a point, then freezes, and hits TDR.
If I do a glflush() after each small draw call, everything will finish, but its slow. If i do glflush() after, say, 16 small draw calls, it is significantly faster, but it can crash if it's too high, and depends on lots of other factors. Is there a better way to get the most out of the GPU without crashing, and is there anything I can do about windows becoming non-responsive while it's rendering?
