TOpenGLControl regression: flicker using Linux GTK with NVidia graphics cards
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
Recent changes to the TOpenGLControl provided in /components/lazarus/opengl cause flicker for every Lazarus OpenGL project I tried on my Linux Ubuntu 16.04 computer. The machine has a GTX 1080 Ti card and runs other OpenGL programs (including Lazarus programs compiled previously) without problem. The flicker is seen with every update, and setting features like GLBox.doublebuffered has no effect. This regression can be fixed by replacing the contents of /components/lazarus/opengl with that from prior releases of Lazarus (I used the 1.8) and rebuilding Lazarus and the projects. It returns if you put in the latest files. This is seen in every OpenGL project. I tested on two machines with identical results.
The flicker is the entire context, each time the scene changes.
Steps to reproduce:
The easiest way to demonstrate this is the OpenGL sample project included with Lazarus
/components/lazarus/opengl/testopenglcontext1.lpr
This project autoupdates, so the flicker is severe and complete.
(the imgui.lpr project shows this effect the least, maybe since it rarely updates).
Compile your favorite OpenGL project. I replicated it with these projects, some of which are classic OpenGL 2.1 and others use OpenGL 3.3 core, the results are the same.
https://github.com/neurolabusc/OpenGLCoreTutorials
https://github.com/neurolabusc/OpenGLCoreTutorials
https://github.com/neurolabusc/vx
https://github.com/neurolabusc/surf-ice
https://github.com/neurolabusc/MRIcroGL
Mantis conversion info:
- Mantis ID: 33864
- OS: Ubuntu
- OS Build: 16.04
- Build: 58283
- Platform: Linux
- Version: 1.9 (SVN)
- Fixed in revision: r59111 (#2ee72166)
- Monitored by: » @neurolabusc1 (Chris Rorden), » AntonK (Anton Kavalenka)
- Target version: 1.10