#4709 closed bug (fixed)
[Kaleidoscope] makes system too slow to react on user's input
Reported by: | mpanasyuk | Owned by: | stippi |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Servers/app_server | Version: | R1/alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Media threads also don't get enough CPU power.
How to reproduce:
- Open some video/sound file in MediaPlayer.
- Hit play and confirm there are no dropped frames or sound glitches.
- Open Kaleidoscope.
Media playback will be affected. To make impact even bigger open Kaleidoscope fullscreen. Also you can chose more complex media file for playback, one that will load CPU more.
Haiku R1/alpha1 (Revision 32975)
Attachments (2)
Change History (15)
by , 15 years ago
Attachment: | sysinfo-output.txt added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Component: | - General → Applications |
---|
comment:3 by , 15 years ago
Version: | R1/pre-alpha1 → R1/alpha1 |
---|
What is "Kaleidoscope" and where can one get it? It definitely sounds like a bad behaving application, but I'd like to confirm that assumption.
comment:6 by , 15 years ago
Component: | Applications → Servers/app_server |
---|---|
Owner: | changed from | to
Thanks! It looks like a locking contention problem within the app_server (probably due to the slow anti-aliasing lines drawing).
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed with hrev35472.
comment:8 by , 15 years ago
I do not think it is fixed. Tested with hrev35528 and real hardware (Athlon64 3200, 2 gigs of ram, Radeon X800 Pro, Soundblaster Audigy).
- Start playing mp3 with mediaplayer
- Start Kaleidoscope
Now sound almost stops. You can hear few second of sound every 5-10 secs. Mouse cursor also randomly starts updating only every 3-5 secs making Haiku use very hard. Mouse cursor problem comes and goes while Kaleidoscope keeps running, but sound stays like that.
Both problems disappear when Kaleidoscope is closed.
comment:9 by , 15 years ago
It seems to be a thread priority issue, Kaleidoscope's app_server thread is of priority 15. On a single core machine that could be preventing MediaPlayer from having enough cpu time. Manually reducing Kaleidoscope's app_server thread priority to 5 helps.
comment:10 by , 15 years ago
Which makes this a different problem. The interface still feels not perfect when Kaleidoscope is running, but it's definitely usable -- the maximum lock holding time should be shortened a bit more.
comment:11 by , 15 years ago
Tested that and it seems that changing Mediaplayer "event queue runner" thread to 20 pretty much fixes the sound. Changing Kaleidoscope to 5 on the other hand only has small effect to sound even if I change all of its threads to priority 5. Neither of the priority changes fix odd mouse behaviour while Kaleidoscope is running.
comment:12 by , 15 years ago
Indeed, reducing Kaleidoscope to 5 shouldn't help a lot - the app_server thread is the expensive one (running with priority 15 as well).
I've further reduced the lock holding time in hrev35548; there is already a ticket about too low MediaPlayer priorities, so that should be covered.
comment:13 by , 15 years ago
I tried to run Kaleidoscope in hrev35548 (vbox) and found out that if you start clicking on leaf menu in the same time - ~30% of such clicks will be ignored (Deskbar didn't react), is it intended?
Forgot to mention - VESA mode. Can't test not in VESA because my graphics card is not supported (nVidia 8600GT)