471,627 Members | 1,250 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

graphics rendering with separate pop up form

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)
Feb 15 '06 #1
2 1235
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.

Feb 15 '06 #2
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?

"Steven Nagy" <le*********@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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.

Feb 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by eBob.com | last post: by
5 posts views Thread by Tim | last post: by
5 posts views Thread by paul.hester | last post: by
11 posts views Thread by achiever | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.