Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1213
Registered: March 2007
Senior 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: Sun May 12 05:56:51 CEST 2024

Total time taken to generate the page: 0.03209 seconds