Opened 17 years ago

Closed 5 years ago

Last modified 5 years ago

#2416 closed bug (duplicate)

[Interface kit] Resizing tracker window flickers address bar

Reported by: diver Owned by: nobody
Priority: normal Milestone:
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc: stippi
Blocked By: #15548 Blocking: #11803
Platform: All

Description


Change History (15)

comment:1 by idefix, 17 years ago

Not only the address bar flickers, but every element that moves or resizes: address bar, folder icon (upper-right corner), item count (lower-left corner) and yellow tab (if the window is too small to show the whole tab). Only the scrollbars (except for some 1 pixel lines), window borders and resize grip don't flicker.

comment:2 by idefix, 17 years ago

Forgot to mention: the menu bar (if the window is too small to show the whole menu bar).

in reply to:  1 comment:3 by diver, 17 years ago

Replying to idefix:

Not only the address bar flickers, but every element that moves or resizes: address bar, folder icon (upper-right corner), item count (lower-left corner) and yellow tab (if the window is too small to show the whole tab). Only the scrollbars (except for some 1 pixel lines), window borders and resize grip don't flicker.

That's right.

comment:4 by diver, 15 years ago

Still here in hrev35141

comment:5 by diver, 15 years ago

Version: R1/pre-alpha1R1/Development

comment:6 by diver, 14 years ago

Still reproducible in VirtualBox with hrev38300.

comment:7 by humdinger, 10 years ago

Blocking: 11803 added

comment:8 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:9 by diver, 6 years ago

Cc: stippi added

Qt also had this problem years ago but they fixed it http://blog.qt.io/blog/2007/08/09/qt-invaded-by-aliens-the-end-of-all-flicker/

I also remember that SkyOS was flicker free due to window compoziting https://web.archive.org/web/20060813061351/http://www.skyos.org:80/?q=node/508

I wonder if buffered windows that stippi mentioned recently on IRC could fix this issue? Stippi?

comment:10 by diver, 6 years ago

On the other hand not all widgets flicker during window resize, I wonder why is that.

comment:11 by stippi, 6 years ago

Normal drawing updates in Haiku are actually flicker free. When windows are resized however, there are two mechanisms: The widgets get a new size, and are requested to draw. When the widget has a background color set, the app_server will pre-fill the exposed areas with that color. Widgets can set a transparent view color to prevent that from happening. In addition, some widgets request to be redrawn in full when they are resized. Perhaps the process could be more optimized to prevent flickering, but when it happens, it is due to these circumstances. The combination full update + non-transparent view color should be the one that leads to flickering.

comment:12 by stippi, 6 years ago

... perhaps it is not yet clear why flickering actually happens. The crucial bit is how screen updates are synchronized. I think for normal drawing updates, the app_server will delay a screen update until the view is finished drawing, even when the view has a non-transparent view color and the app_server pre-fillied before drawing. During resizing, there is less synchronization and the app_server won't delay screen updates until all views in a window have actually finished drawing. Then it depends on how much the app_server has pre-filled and how much the view managed to draw when the screen update happens.

comment:13 by X512, 5 years ago

Duplicate of #15548. Issue resolved with proposed fix.

comment:14 by diver, 5 years ago

Blocked By: 15548 added
Resolution: duplicate
Status: assignedclosed

comment:15 by nielx, 5 years ago

Milestone: R1

Remove milestone for tickets with status = closed and resolution != fixed

Note: See TracTickets for help on using tickets.