Opened 5 years ago

Closed 5 years ago

#10571 closed bug (fixed)

Slow app_server drawing with new scheduler

Reported by: jua Owned by: pdziepak
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: scheduler graphics app_server Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by jua)

With the new scheduler, I get very slow graphics drawing on my machine. Dragging windows around is slow and lagging, same with e.g. scrolling a website in WebPositive. Fluid video playback is impossible.

A good way to benchmark this is the "Chart" application from our Demos folder. I tested with 3 Haiku revisions:

Selecting "DirectWindow" as display method in Chart, all three revisions get fluid 60fps with 3% CPU usage. However, using "DrawBitmap", the problem becomes apparent: only the pre-scheduler-merge version performs well and fluid, the others suffer from very bad performance (less than 10fps even at 100% CPU usage).

I'm attaching 3 screenshots of the test which also show ActivityMonitor.

Test system: AMD E-450 APU (dual core), Radeon HD6320, 2GB RAM. Same behaviour with both, radeon_hd and VESA graphics driver.

Let me know if further information is required.

Attachments (4)

chart_hrev46684.png (105.8 KB) - added by jua 5 years ago.
Running Chart on hrev46684 (old scheduler)
chart_hrev46699.png (93.3 KB) - added by jua 5 years ago.
Running Chart on hrev46699 (new scheduler)
chart_hrev46893.png (92.3 KB) - added by jua 5 years ago.
Running Chart on hrev46893 (new scheduler, latest)
syslog (182.8 KB) - added by jua 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by jua

Attachment: chart_hrev46684.png added

Running Chart on hrev46684 (old scheduler)

Changed 5 years ago by jua

Attachment: chart_hrev46699.png added

Running Chart on hrev46699 (new scheduler)

Changed 5 years ago by jua

Attachment: chart_hrev46893.png added

Running Chart on hrev46893 (new scheduler, latest)

comment:1 Changed 5 years ago by jua

Description: modified (diff)

comment:2 Changed 5 years ago by anevilyak

Owner: changed from axeld to pdziepak
Status: newassigned

comment:3 Changed 5 years ago by pdziepak

Is the problem still present when running Haiku with SMP disabled? Also, full syslog may be useful.

comment:4 in reply to:  3 Changed 5 years ago by jua

Replying to pdziepak:

Is the problem still present when running Haiku with SMP disabled?

Yes, makes no difference.

Also, full syslog may be useful.

See below.

Changed 5 years ago by jua

Attachment: syslog added

comment:5 Changed 5 years ago by jua

Resolution: fixed
Status: assignedclosed

Found the bug in the changes to generic_x86 add-on. Fixed in hrev46941

Note: See TracTickets for help on using tickets.