Home » Community » U++ community news and announcements » gtk rendering improvements, BufferPainter::PaintOnceHint
Re: gtk rendering improvements, BufferPainter::PaintOnceHint [message #57176 is a reply to message #57175] |
Fri, 04 June 2021 14:55   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
Tom1 wrote on Fri, 04 June 2021 13:25Hi Mirek,
I did some testing of SetSurface on Linux/Gtk and noticed that it does not work well when using only a part of a larger image. Offset does not seem to work at all there. On Windows, it works very well and can update a 4k screen at 40-50 FPS with SetSurface and 13 FPS with DrawImage. On Linux I get 11-12 FPS for DrawImage.
Update: PaintOnceHint() almost doubles the DrawImage() FPS on Linux/Gtk to about 20 FPS. On Windows PaintOnceHint() does not have any effect on DrawImage() performance.
Uhm, src and offset is not even really implemented, sorry, that is my mess... Frankly, for the dominant use of SetSurface, it really even is not needed. I think removing that SetSurface variant would be enough; you can always achieve setting subpart with Offset and Clip....
Also PaintOnceHint really is only used with Gtk now. Maybe it could be used to optimize MacOS, but that is todo..
Mirek
|
|
|
 |
|
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 Aug 24 12:27:45 CEST 2025
Total time taken to generate the page: 0.04541 seconds
|