Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
QuestionWeb Application <th> elements?</th> Pin
Imran Adam7-Dec-07 8:35
Imran Adam7-Dec-07 8:35 
GeneralRe: Web Application elements? Pin
Christian Graus7-Dec-07 9:50
protectorChristian Graus7-Dec-07 9:50 
GeneralThanks to you all!!! Pin
kingletas7-Dec-07 7:28
kingletas7-Dec-07 7:28 
GeneralRe: Thanks to you all!!! Pin
Judah Gabriel Himango7-Dec-07 10:33
sponsorJudah Gabriel Himango7-Dec-07 10:33 
GeneralRe: Thanks to you all!!! Pin
kingletas8-Dec-07 13:12
kingletas8-Dec-07 13:12 
GeneralRe: Thanks to you all!!! Pin
Xmen Real 7-Dec-07 14:46
professional Xmen Real 7-Dec-07 14:46 
QuestionComparing objects created in different threads Pin
mszwaya7-Dec-07 7:20
mszwaya7-Dec-07 7:20 
GeneralRe: Comparing objects created in different threads Pin
Ennis Ray Lynch, Jr.7-Dec-07 8:03
Ennis Ray Lynch, Jr.7-Dec-07 8:03 
You can maintain a static list of ball objects that is available to all threads and use it to compare for intersection.

I am curious as to how many processors you have? Usually for such a scenario all of the thread logic would be handled via one thread and the drawing in another. That is really the simplest scenario.

To really split it up you need to seen each thread a region of control (not a ball) and have the thread check regions of control for intersections and then pass control to another entity to check for intersections when balls hit boundaries on regions of control.

Best bet, just use one thread for balls and one for UI. Also, use a rectangle for collision testing first to significantly increase performance.

Need a C# Consultant? I'm available.


Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway


GeneralRe: Comparing objects created in different threads Pin
Mark Churchill7-Dec-07 14:26
Mark Churchill7-Dec-07 14:26 
AnswerRe: Comparing objects created in different threads Pin
mszwaya10-Dec-07 4:46
mszwaya10-Dec-07 4:46 
Questionstring searching?? Pin
Small Rat7-Dec-07 6:59
Small Rat7-Dec-07 6:59 
GeneralRe: string searching?? Pin
Skippums7-Dec-07 9:53
Skippums7-Dec-07 9:53 
GeneralRe: string searching?? Pin
pmarfleet7-Dec-07 10:40
pmarfleet7-Dec-07 10:40 
GeneralRe: string searching?? Pin
Pete O'Hanlon7-Dec-07 11:18
mvePete O'Hanlon7-Dec-07 11:18 
Generalevent for adding item in listbox Pin
Xmen Real 7-Dec-07 5:59
professional Xmen Real 7-Dec-07 5:59 
GeneralRe: event for adding item in listbox Pin
Anthony Mushrow7-Dec-07 6:22
professionalAnthony Mushrow7-Dec-07 6:22 
GeneralRe: event for adding item in listbox Pin
Xmen Real 7-Dec-07 14:42
professional Xmen Real 7-Dec-07 14:42 
Generaldatagridview cell colour Pin
arkiboys7-Dec-07 5:29
arkiboys7-Dec-07 5:29 
GeneralRe: datagridview cell colour Pin
Giorgi Dalakishvili7-Dec-07 5:44
mentorGiorgi Dalakishvili7-Dec-07 5:44 
Generalincrement by 1 Pin
eyeseetee7-Dec-07 4:41
eyeseetee7-Dec-07 4:41 
AnswerRe: increment by 1 Pin
Guffa7-Dec-07 4:51
Guffa7-Dec-07 4:51 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 4:58
eyeseetee7-Dec-07 4:58 
AnswerRe: increment by 1 Pin
Guffa7-Dec-07 5:04
Guffa7-Dec-07 5:04 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:10
eyeseetee7-Dec-07 5:10 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 5:21
Ian Shlasko7-Dec-07 5:21 

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.