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
gtk rendering improvements, BufferPainter::PaintOnceHint [message #57172] Thu, 03 June 2021 11:33 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have found some bottleneck in gtk rendering and possible improvements:

- Paint was called too often (basically, too soon, after each event) due to event processing code, this is now resolved.
- SetSurface was optimized to use cairo_image_surface_create_for_data, which is about 3 times faster than previous code
- With SetSurface fast, when the Image is supposed to be painted just once, SetSurface is the fastest route. To this end I have added PaintOnceHint to ImageBuffer.
- PainterDraw is now using this new hint for much improved performance...

Hopefully this does not break anything...

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 Apr 28 02:40:35 CEST 2024

Total time taken to generate the page: 0.07053 seconds