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 » BufferPainter now MT optimized
BufferPainter now MT optimized [message #49144] Tue, 26 December 2017 11:52 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
This one was hard... but Painter now has 'Co' method which actually works. Gains are not spectacular, with my 4/8 i7 CPU, the basic 'U++ Painter' example in PainterExamples is like 2.3 times faster in MT. In some rare cases (e.g. when there is a lot of raster data, like radial span), speedup can be >4, in some other rare cases (a lot of small polygons), MT can even be bit slower than ST.

Important: When Co is active, it is mandatory to invoke 'Finish' method to finalize painting before moving result from ImageBuffer. BufferPainter destructor does this, so either add a {} block or call Finish explicitly.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New parallelization pattern with CoWork
Next Topic: Minor ide iml image designer changes and improvements
Goto Forum:
  


Current Time: Wed May 08 21:42:28 CEST 2024

Total time taken to generate the page: 0.02528 seconds