Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI lag #72

Open
markzyu opened this issue Dec 15, 2015 · 2 comments
Open

GUI lag #72

markzyu opened this issue Dec 15, 2015 · 2 comments

Comments

@markzyu
Copy link

markzyu commented Dec 15, 2015

Using trees in GUI code seems too much.

@markzyu
Copy link
Author

markzyu commented Dec 15, 2015

And we could also consider hardware acceleration: http://wiki.osdev.org/Accelerated_Graphic_Cards

But QEMU defaults to emulate "cirrus" graphics card, without much support for acceleration... It must be our drawing algorithm that could be enhanced.

After some experiments, I found that making better use of cache might help. But that requires nested loops.

I am working on loop exchange techniques in Compositor::drawSingle

@markzyu
Copy link
Author

markzyu commented Dec 18, 2015

Faster in fded70c

Now the lag seems to be due to long critical sections.

Also after exchanging the loops, some new bugs appear in compositor (redrawing mouse will affect the windows beneath it).

Maybe we should not exchange the loops but check the conditions in advance, and use a temporary list of elements to draw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant