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 #57176 is a reply to message #57175] Fri, 04 June 2021 14:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Tom1 wrote on Fri, 04 June 2021 13:25
Hi 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
 
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 Aug 24 12:27:45 CEST 2025

Total time taken to generate the page: 0.04541 seconds