graphics rendering with separate pop up form

D

Daniel

Hey guys

I have an app running a directx window, that part is fine but as you know it
runs on an infinite loop redering frames per second.

My issue is this is for a gaming app i am making that requires a lobby. I
want users to see the lobby then see the game they choose open up ina
separate form.

But it seems if i have both forms open at once the first form (lobby form
which is a standard winform c# vis studio) freezes. I presume because the
directx window is sucking up the processor power.

So i thought stick the call to the other form in its own thread, but when i
did that the form opened and closed within a second. I am guessing because
the thread ended as the methos i called using that thread simply did a
Form.Show() . i thought the form would then do what it does normally.

As you can see i am pretty stuck here. Any help welcome? (and a side note if
anyone knows how to get the rendering power under 100% i'd be interested
too)
 
S

Steven Nagy

Rendering power under 100%? Do you mean CPU utilisation?
You gotta rest that thread somewhere. Sleep it up.
Possibly also affecting your other form as well.
 
D

Daniel

The 10% cpu power was a real side note, any ideas on my bigger question? I
also read sleeping a thread is very bad? But i will take your advice. Any
ideas on the pop up form problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top