Click here to Skip to main content
15,913,836 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create click event for Class Pin
Steven Solberg29-May-10 4:57
Steven Solberg29-May-10 4:57 
GeneralRe: Create click event for Class Pin
Luc Pattyn29-May-10 5:01
sitebuilderLuc Pattyn29-May-10 5:01 
GeneralRe: Create click event for Class Pin
PIEBALDconsult29-May-10 5:16
mvePIEBALDconsult29-May-10 5:16 
AnswerRe: Create click event for Class Pin
Luc Pattyn29-May-10 5:10
sitebuilderLuc Pattyn29-May-10 5:10 
GeneralRe: Create click event for Class Pin
Steven Solberg29-May-10 7:12
Steven Solberg29-May-10 7:12 
GeneralRe: Create click event for Class Pin
Luc Pattyn29-May-10 7:52
sitebuilderLuc Pattyn29-May-10 7:52 
GeneralRe: Create click event for Class Pin
Steven Solberg29-May-10 8:16
Steven Solberg29-May-10 8:16 
GeneralRe: Create click event for Class Pin
Luc Pattyn29-May-10 8:47
sitebuilderLuc Pattyn29-May-10 8:47 
so it is NOT a MouseClick issue, it is a "do many things while mouse is down" problem.

Not sure what the picture should tell me. All I see is a couple of images, some very similar or identical.

Some thoughts:

1.
While the mouse is down (I assume inside a MouseMove handler), maybe you are repeating a lot of calculations over and over, which only need to happen once, and could be moved to the actual MouseDown handler.

2.
Using multiple threads may cause delays; it all depends on how you organize things. If you have more threads than cores, and all of them are "ready" meaning they have some non-blocking job, they will be switched in and out based on the time slice which probably is 1 or 2 system ticks (that would be 10 to 30 milliseconds), a fairness principle.

3.
Watch your CPU load; if Task Manager never comes close to 100%, then more threads might help. If you are close to 100%, then many things are possible:
a. you are performing unnecessary operations (e.g. repainting an image that hasn't changed at all)
b. you have polling loops; that is the perfect way to waste CPU power
c. you have small jobs (less than 0.1 millisecond); thread switching becomes dominant cost
d. your implementation is OK, maybe the job is big, or your concept is flawed.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: Create click event for Class Pin
Steven Solberg29-May-10 9:02
Steven Solberg29-May-10 9:02 
GeneralRe: Create click event for Class Pin
Luc Pattyn29-May-10 9:14
sitebuilderLuc Pattyn29-May-10 9:14 
GeneralRe: Create click event for Class Pin
Steven Solberg29-May-10 9:25
Steven Solberg29-May-10 9:25 
GeneralRe: Create click event for Class Pin
Luc Pattyn29-May-10 9:46
sitebuilderLuc Pattyn29-May-10 9:46 
GeneralRe: Create click event for Class Pin
Steven Solberg29-May-10 9:58
Steven Solberg29-May-10 9:58 
GeneralRe: Create click event for Class Pin
Luc Pattyn29-May-10 10:04
sitebuilderLuc Pattyn29-May-10 10:04 
GeneralRe: Create click event for Class Pin
Steven Solberg30-May-10 1:46
Steven Solberg30-May-10 1:46 
GeneralRe: Create click event for Class Pin
Luc Pattyn30-May-10 1:59
sitebuilderLuc Pattyn30-May-10 1:59 
GeneralRe: Create click event for Class Pin
Steven Solberg30-May-10 2:56
Steven Solberg30-May-10 2:56 
GeneralRe: Create click event for Class Pin
Steven Solberg30-May-10 3:36
Steven Solberg30-May-10 3:36 
Questionhow can i do this Controls c# Pin
neverpleat28-May-10 20:29
neverpleat28-May-10 20:29 
AnswerRe: how can i do this Controls c# Pin
Ankur\m/28-May-10 21:29
professionalAnkur\m/28-May-10 21:29 
GeneralRe: how can i do this Controls c# Pin
neverpleat29-May-10 0:32
neverpleat29-May-10 0:32 
AnswerRe: how can i do this Controls c# Pin
OriginalGriff28-May-10 22:01
mveOriginalGriff28-May-10 22:01 
GeneralRe: how can i do this Controls c# Pin
neverpleat29-May-10 0:29
neverpleat29-May-10 0:29 
GeneralRe: how can i do this Controls c# Pin
Ankur\m/29-May-10 0:41
professionalAnkur\m/29-May-10 0:41 
GeneralRe: how can i do this Controls c# Pin
OriginalGriff29-May-10 0:43
mveOriginalGriff29-May-10 0:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.