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 » U++ Widgets - General questions or Mixed problems » How to implent a rubber band Class in u++
Re: How to implent a rubber band Class in u++ [message #17250 is a reply to message #17249] Mon, 04 August 2008 19:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
tojocky wrote on Mon, 04 August 2008 12:56

luzr wrote on Fri, 01 August 2008 09:53

tojocky wrote on Sat, 26 July 2008 19:02

I tried to optimize this project, but i made this project more slowly and somewhere i have memory leak.
I added in RubberBandClass parameter

Quote:

Drawing resultpaint;

I Tried to buffering image on MouseMove and paste buffered image in method Paint method.

I attached the project!

Help!


After fixing apparent bugs, I see no leak.

Anyway, Drawing will not speed this up. It would be more efficient to just add some "DrawRubber" method to your RubberBandClass.

Mirek

How can I speed up if I will have a lot of points?


Let us put it into perspective.

How much points? How slow? How much virtual memory? What computer?

I had patience to create 3000 points band, noticing NO slowdown, VM at 6MB (normal).

(But I must admit I have top-end rig now).

Mirek
 
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
Read Message
Read Message
Read Message
Previous Topic: FileList problems with extensions and pop-ups
Next Topic: How to turn off special chars in RichEdit?
Goto Forum:
  


Current Time: Tue Jun 10 16:39:08 CEST 2025

Total time taken to generate the page: 0.03946 seconds