Bug #34964 Screen flicker and redraw problems when not full screen
Submitted: 29 Feb 2008 18:34 Modified: 21 Mar 2008 12:42
Reporter: Tony Freixas Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.14a OS:Windows (XP SP2)
Assigned to: CPU Architecture:Any
Tags: draw, flicker, GL, redraw

[29 Feb 2008 18:34] Tony Freixas
Description:
If the Workbench window is not full screen, I get a lot of flicker when I move the mouse over the Workbench window while displaying a database model. I get visual artifacts if I scroll the model. If I make the window full screen, the problems go away.

The flicker looks like a slow redraw; i.e. I see the grid appear and then the objects that lie over the grid. It almost looks like the GL rendering is being turned off when the window is not full screen.

Here's the system info report:

MySQL Workbench OSS for Windows version 5.0.14
Rendering Mode: OpenGL Rendering
OpenGL Driver Version: 2.1.2
OS: Windows XP
CPU: 2x AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 3.0 GB RAM
Video adapter info:
Adapter type: NVIDIA GeForce 7600 GS
Chip Type: GeForce 7600 GS
DAC Type: Integrated RAMDAC
Adapter String:                    GeForce 7600 GS
BIOS String: Version 5.73.22.51.51
Memory Size: 524288 KB

How to repeat:
I don't know how you can repeat this.

On my system, I can repeat the problem by making the window less than full screen, displaying a model diagram, and then moving the cursor over the diagram.
[17 Mar 2008 15:47] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.15-rc, and inform about the results.
[17 Mar 2008 17:55] Tony Freixas
I tested with 5.0.15-rc. None of the flicker and redraw problems occur. Looks good!

You may want to check the drawing path to see if you left any debug statements in place. Scrolling seems to lag with drawing complexity. Displaying the grid has a big effect. Normally, scrolling is done by with a BLT (bit-copy) of the existing rendered bits and then a redraw of the new area exposed by the scroll. The performance of your application makes me think that you are redrawing the entire diagram each time you scroll. On my system, the performance is acceptable, but other applications with a comparable amount of complexity do much better.
[21 Mar 2008 12:42] Valeriy Kravchuk
Closing this as initial problems seems to be resolved by 5.0.15-rc.