From 3045d639691c893dfa3393f88289ad72cbcdd86e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 14 Apr 2013 16:28:54 +0200 Subject: reduce software cursor flickering the software cursor starts flickering and reacts bumby if a process spends most of its time with drawlock acquired because the timer interrupt thats supposed to redraw the cursor fails to acquire the lock at the time the timer fires. instead of trying to draw the cursor on the screen from a timer interrupt 30 times per second, devmouse now creates a process calling cursoron() and cursoroff() when the cursor needs to be redrawn. this allows the swcursor to schedule a redraw while holding the drawlock in swcursoravoid() and cursoron()/cursoroff() are now able to wait for a qlock (drawlock) because they get called from process context. the overall responsiveness is also improved with this change as the cursor redraw rate isnt limited to 30 times a second anymore. --- sys/src/9/bcm/main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/src/9/bcm/main.c') diff --git a/sys/src/9/bcm/main.c b/sys/src/9/bcm/main.c index 4a00d1b13..1b78c80d1 100644 --- a/sys/src/9/bcm/main.c +++ b/sys/src/9/bcm/main.c @@ -249,8 +249,6 @@ main(void) clockinit(); printinit(); timersinit(); - if(conf.monitor) - swcursorinit(); cpuidprint(); archreset(); -- cgit v1.2.3