?
Solved

Simple One For Mike Lischke

Posted on 2000-04-20
9
Medium Priority
?
282 Views
Last Modified: 2010-08-05
Hi Mike,
  I think this is a simple one for you.

If I view an object (fairly complex model) in your opener it runs really fast, if I then open another opener with another fairly complex model and I both run both views, regrardless if one is minimized the one I'm viewing runs at half the frame rate.  As soon as I close one of the openers the frame rate goes up again.  

I can't seem to figure out why this is, as the second opener is not visible and so shouldn't be drawing to the screen.

Any Ideas?

Cheers
Woody.
0
Comment
Question by:WoodyJ3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 

Author Comment

by:WoodyJ3
ID: 2733818
Ah, I just tried it again and it seems that it's something to do with one window being maximized.

What I would like to do is have one main opengl viewer which is maximized and another small opengl window sitting on top in the bottom right corner.  Both would display the same object but with different views.  The problem is, if I create another smaller window and sit it on top of the main viewer both viewers slow right down.

??

Woody
0
 

Author Comment

by:WoodyJ3
ID: 2733936
This is how to reproduce.

Start opener, load a model and maximize the opengl window.

Start a second opener and load a model maximize the the opengl window.

The first opengl window still runs at the correct frame rate.

It you activate the second opengl window it runs very slow.  The only way to speed the second window up is to close the first.

Woody.
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2743039
Hi Woody,

sorry, I was on holiday for a few days. That's the reason why I haven't answered.

I'm not sure why you ask the question here. It is obvious that your machine (graphics board) cannot handle such a large amount of geometry data (as you indicated by saying it's about a fairly complex model). One instance will already take all the computing power of your machine and every new instance simply gets not enough CPU/graphics power...


Ciao, Mike
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:WoodyJ3
ID: 2746862
I agree, but what it doesn't explain is why the first window still runs at the same frame rate (very fast)...  

If this was just a case of CPU power wouldn't the first window slow down aswell?

I'm using a geforce 256 chip DDR version card on a pentuim II 450mhz.

Cheers
Woody.

0
 
LVL 10

Expert Comment

by:Lischke
ID: 2746941
Mmmh, yes. Both windows should split the available CPU power among each other equally. I have no idea why they don't. Perhpas it is a matter of thread management in Windows and/or OpenGL? Opener does not modify thread priorities or such things. It just displays its graphics.

Ciao, Mike
0
 

Author Comment

by:WoodyJ3
ID: 2747027
Yes, It's very strange.  It seems to give the first opengl window created priority over all other opengl windows.

I'm gonna try the test again but this time assign the second window with a higher process priority than the first.

Do you think this is anything to do with "wgl" commands i.e. wglMakeCurrent??

Cheers
Woody.
0
 
LVL 10

Accepted Solution

by:
Lischke earned 60 total points
ID: 2747055
I doubt this, but one never can be sure absolutely. However this problem is caused I guess you can make nothing about/against it.

Ciao, Mike
0
 

Author Comment

by:WoodyJ3
ID: 2750831
Oh well, it's a shame, but I can do a work around.

Thanks anyway.
Woody.

if you ever find the answer mail me at
woody@stalker.fsnet.co.uk
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2750853
Yes, I will do that. Thank you for the 'A' grading. In this case I don't deserve it...

Ciao, Mike
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question