473,383 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 1285
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian K | last post by:
I am new to Apache Batik and I am now doing a SVG Editor for my project. I use Java as programming language. I use Batik to generate the SVG from Java Graphics2D, as I would like to transform...
1
by: James dean | last post by:
Could someone explain how this works. I think the graphics card is used to do blitting and drawing shapes like rectangles. How does it draw using the Graphics card on the PC and why is this feature...
2
by: eBob.com | last post by:
This real novice VB.NET programmer wants to put a "scatterplot" (just a bunch of dots) on his form. There'll be other stuff on the form too, but it's the scatterplot which I need your help on. Is...
6
by: Paul_Madden | last post by:
I have a System.Windows.Forms.Form onto which I add a Panel (MyPanel) directly derived from System.Windows.Forms.Panel. Here are the important code fragments ... public class MyPanel : Panel...
5
by: Tim | last post by:
hi I used to do this Dim gfx As System.Drawing.Graphics = pic1.CreateGraphics gfx.FillEllipse blah blah blah to draw straight onto a form. but this is frowned up (slow).
5
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
11
by: achiever | last post by:
I am a IIIrd electronics Engg student i want to know what is the role of graphics in c is it ok to spend a lot of time on learning c graphic or to start the new language like JAVA. Thanks in...
9
by: koschwitz | last post by:
Hi, I hope you guys can help me make this simple application work. I'm trying to create a form displaying 3 circles, which independently change colors 3 times after a random time period has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.