Recent

Author Topic: [SOLVED] How to prevent jerking of OpenGL texture rendering  (Read 10370 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: [SOLVED] How to prevent jerking of OpenGL texture rendering
« Reply #15 on: July 07, 2017, 01:25:04 pm »
You will not have any speed benefits as only one thread at a time can render OpenGL but you can separate the rendering from the main thread which does the user interaction.
I've adapted the opengl example which comes with lazarus to do the rendering in a thread (see attachment).
But this only works with applied patch for OpenGLContext.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

 

TinyPortal © 2005-2018