U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1266
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


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mouse Interaction with UI causes Paint to not function
Next Topic: Option Label on Left Side draw
Goto Forum:
  


Current Time: Sat May 30 05:23:42 GMT+2 2026

Total time taken to generate the page: 0.00701 seconds