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

Home » Community » U++ community news and announcements » gtk rendering improvements, BufferPainter::PaintOnceHint
Re: gtk rendering improvements, BufferPainter::PaintOnceHint [message #57190 is a reply to message #57178] Mon, 07 June 2021 12:27 Go to previous messageGo to previous message
Tom1
Messages: 1319
Registered: March 2007
Ultimate Contributor
mirek wrote on Fri, 04 June 2021 18:55
Tom1 wrote on Fri, 04 June 2021 16:20
Hi,

Please do not remove the SetSurface() variant with src and offset. My scrolling histogram view (on Windows) is absolutely dependent on that as it works on an image buffer which is configured as a larger ring buffer. It is very performance sensitive for fast and smooth scrolling of the view and the current SetSurface() has been the reliable work horse here.


But it should work exactly the same with Offset and Clip... DrawImage is curretly using this trick already, see Draw/Draw.cpp:134

Hi Mirek,

OK, I see. Did some testing on this. Using Clipoff()+SetSurface() yields similar performance on Windows as SetSurface() with src alone. It just requires a bit more complex code on this side than the original version.

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: git
Next Topic: integer->String conversion optimised
Goto Forum:
  


Current Time: Wed Sep 09 04:22:45 GMT+2 2026

Total time taken to generate the page: 0.00669 seconds