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
Re: BufferPainter now MT optimized [message #49183 is a reply to message #49181] Wed, 03 January 2018 09:04 Go to previous messageGo to previous message
Tom1
Messages: 1301
Registered: March 2007
Ultimate Contributor
Hi Mirek,

I found out that PreClip(true/false); is involved here. (To optimize rendering performance in my code, I enable PreClip only for rendering dashed strokes.)

Please find attached the MTPainterIssue testcase package. It is supposed to draw four sine waves, half of which are solid and the other half dashed. As it turns out, with BufferPainter::Co the solid strokes become fills instead of lines. The package is delivered here in its faulty state with painter.Co(true); please set to false to see the correct rendering.

The way to fix this problem in the MTPainterIssue testcase package is to switch the ordering of PreClip(true)/Begin() and End()/PreClip(false) pairs for dashed lines. This is also the appropriate fix for my actual code.

Best regards,

Tom

Update: Added the missing attachment...

[Updated on: Wed, 03 January 2018 09:29]

Report message to a moderator

 
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: Tue Apr 29 09:52:22 CEST 2025

Total time taken to generate the page: 0.00693 seconds