-
Notifications
You must be signed in to change notification settings - Fork 10
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
Question about the performances #9
Comments
The list is implemented with a list-clipper, so only the memory visible on the screen is queried/rendered. The run-time is unfortunately larger than I'd like. The biggest problem is the fact that we have to allocate a String for every single displayed byte (e.g A few months back I tried allocating one single String per column group (usually 8 bytes). That improved performance significantly but suffered some issues with layout. In principle it should be possible to complete that work, although one would have to give up customizability of gaps between columns, as they would just be spaces/tabs at that point. 4ms does seem quite high though. For a full-screen 64 column ASCII enabled view it still only takes around 2 milliseconds per frame for me. Are you running in |
Definitely running in release mode. Read the results again, about 2.2msfor rendering 256 values on 16 columns. If I set it to 64 columns (1024 values), it reaches 6.1ms. Note my PC is pretty old (12 years +) and my graphics card is cheap. So that may just be the reason why it's slow :-/ I'll do a check with simple labels (I don't need the editor at the moment) and see how fast it goes. Thanks for spending some time answering my question ! |
Hello!
I've looked at your very nice memory editor demo today. I was a bit "surprised" by its runtime performance on my hardware (about 4ms out of the 16.6 available). Before rolling my own stuff, I wanted to ask you: did you optimize in way or another ? If so then well, I guess the performance are not bad and it's just the best one can do.
For example, do you redraw only the "visible" parts of the view or do you let egui do the clipping for you ?
Thank you !
The text was updated successfully, but these errors were encountered: