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 » U++ Library support » Draw, Display, Images, Bitmaps, Icons » High Performance Drawing
Re: High Performance Drawing [message #13702 is a reply to message #13701] Wed, 23 January 2008 16:56 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
So basically I need to update stuff on mouse move, and I came to this three cases that I tested:

1. When drawing a line in paint method, it is fast, but due to the need of clearing the previous position, it is flickery. Not using DrawRect, only updating minimum zone is less flickery, but still bad.

2. When pre-caching the final result in and ImageDraw, it is very slow, but no flicker.

And the strange one:

3. When instead of drawing a line, I'm resizing a control, I get no flicker and good performance. This case doesn't have the Refresh call, and also, the control itself is probably backbuffered, that's why no flicker. But why is the performance still good?
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Alpha channel in raster images
Next Topic: Optimized storage of 1BPP images
Goto Forum:
  


Current Time: Wed May 15 15:25:43 CEST 2024

Total time taken to generate the page: 0.02672 seconds