Solved

Simple One For Mike Lischke

Posted on 2000-04-20
9
280 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
Independent Software Vendors: 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 15 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 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