OSDev.org https://forum.osdev.org/ |
|
Is my GUI design terrible? https://forum.osdev.org/viewtopic.php?f=15&t=32419 |
Page 2 of 2 |
Author: | mariuszp [ Wed Sep 20, 2017 3:58 am ] |
Post subject: | Re: Is my GUI design terrible? |
onlyonemac wrote: mariuszp wrote: Yes, I had the problem with an event queue before, and fixed it in (almost) exactly the same way as you just described. Good. How did you fix it?BY having the OS have a blocking "wait for mouse" call, which after returning reports only the most recent mouse state. The previous ones are not queued up. Also, it seems most of my performance issue is with text rendering, which I do using FreeType. A 5-paragraph "lorem ipsum" takes 12 seconds to render 10 times (in DejaVu Sans, 20)... |
Author: | Korona [ Wed Sep 20, 2017 5:51 am ] |
Post subject: | Re: Is my GUI design terrible? |
Your ddiWritePen() function is horribly inefficient.
|
Author: | mariuszp [ Wed Sep 20, 2017 1:57 pm ] |
Post subject: | Re: Is my GUI design terrible? |
Korona wrote: Your ddiWritePen() function is horribly inefficient.
The library is compiled with -O3 which appears to optimise ddiCopy(). But either way, I'll look into all the issues one-by-one and see how much i can boost the performance |
Author: | mariuszp [ Fri Sep 22, 2017 8:39 am ] |
Post subject: | Re: Is my GUI design terrible? |
WOW! The loop and other micro-optimisations didn't do too much, but the caching certainly has. Render 5 paragraphs of "lorem ipsum" ten times previously took approximately 12000 ms, now it takes an average of 470 ms. This is more than 25 times faster! I;ll continue to look for possible optimisaitons, and will get onto implementing partial updates in the compositor. |
Page 2 of 2 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |