Latest version of all 3 drivers call refresh constantly
Describe the bug
Clicking the mouse causes about 68 screen refreshes (it does eventually stop)
To Reproduce This changed recently.
- Add a debug counter to
UpdateScreen - Click mouse
Expected behavior Only redraw when something has changed.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
I probably did this when I fixed a bunch of repaint logic last week. I focused on WindowsDriver.
@tznind I think you should change the title to reflect that this affect all drivers.
I finally got frustrated with all this enough today. I have started a branch where I finally make
- layout decoupled from draw
- enforce that Clear rarely happens
- ensure drivers minimize full repaints
- minimize when Draw/OnDrawContent are called
More soon.