Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Font and Image rendering slow
Re: Font and Image rendering slow [message #60001 is a reply to message #59968] |
Mon, 03 July 2023 23:00   |
Oblivion
Messages: 1226 Registered: August 2007
|
Senior Contributor |
|
|
As for the Draw::IsPainting(),
First you select the area to refresh, using the Refrest(Rect) method, not the Refresh() method.
Then, in the Paint() method, you check for the rectangle, using the Draw::IsPainting() method, and if it is true, only then you paint.
Two -different- examples, using this method to boost the speed:
1) see: CtrlLib/LineEdit.cpp,ln. 468
2) see: UppHub/TerminalCtrl/Renderer.cpp, ln. 196
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
|
|
|
Goto Forum:
Current Time: Wed Aug 27 19:45:40 CEST 2025
Total time taken to generate the page: 0.09657 seconds
|