Author Topic: render thread question  (Read 218 times)

Offline MichaelJPCT

  • long
  • ***
  • Posts: 202
    • View Profile
render thread question
« on: March 15, 2020, 09:50:38 am »
hi Egon,
when World.draw() returns, has GL finished drawing? or is it still working when my program does other work?
does framebuffer.display() finish all render work before return?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12061
    • View Profile
    • http://www.jpct.net
Re: render thread question
« Reply #1 on: March 16, 2020, 08:05:40 am »
Depends on which renderer you are using. For the normal GL renderer, the work is done after World.draw(); The AWTGLRenderer renders in another thread, you can detect if it's done or not by using the IRenderHook.