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 |
Tom1
Messages: 1213 Registered: March 2007
|
Senior Contributor |
|
|
mirek wrote on Fri, 04 June 2021 18:55Tom1 wrote on Fri, 04 June 2021 16:20Hi,
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
|
|
|
|
|
gtk rendering improvements, BufferPainter::PaintOnceHint
By: mirek on Thu, 03 June 2021 11:33
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
By: Tom1 on Thu, 03 June 2021 16:01
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
By: Tom1 on Fri, 04 June 2021 13:25
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
By: mirek on Fri, 04 June 2021 14:55
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
By: Tom1 on Fri, 04 June 2021 16:20
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
By: mirek on Fri, 04 June 2021 17:55
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
By: Tom1 on Mon, 07 June 2021 12:27
|
|
|
Re: gtk rendering improvements, BufferPainter::PaintOnceHint
|
Goto Forum:
Current Time: Sun May 12 05:56:51 CEST 2024
Total time taken to generate the page: 0.03209 seconds
|