Is it possible to force maximum use of the video card with ogre3d?

Everything related to 3D programming
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Is it possible to force maximum use of the video card with ogre3d?

Post by skinkairewalker »

hello everyone !
Is it possible to force maximum use of the video card with ogre3d?

I'm testing the example: LightAttenuation.pb, and you can see that the video card is bottlenecking and having FPS drops as shown in the screenshot below:

Image

Are there ways to fix this, forcing the video card to use more power or is it a configuration error on my video card?

MyPC specs:

Code: Select all

Processor: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 CPUs), ~2.3GHz
Graphics Integrated: Intel(R) UHD Graphics
Graphics Dedicated: NVIDIA GeForce RTX 3060 Laptop GPU
Memory: 16384MB RAM
Available OS Memory: 16164MB RAM
DirectX Version: DirectX 12

miso
Enthusiast
Enthusiast
Posts: 406
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by miso »

I think your desktop resolution is too high for this example, and therefore can't keep up with the render. Try it in true fullscreen with a lower resolution, or in windowed mode with a smaller rendertexture+quad+ortho camera.
User avatar
Skipper
User
User
Posts: 40
Joined: Thu Dec 19, 2024 1:26 pm
Location: NW-Europe

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by Skipper »

Which of the two adapters do you uses for Ogre? The NVIDIA will likely be the faster one.
Also, make sure you have the latest OpenGl drivers installed for the adapter you're using...
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by skinkairewalker »

miso wrote: Tue Feb 11, 2025 10:02 pm I think your desktop resolution is too high for this example, and therefore can't keep up with the render. Try it in true fullscreen with a lower resolution, or in windowed mode with a smaller rendertexture+quad+ortho camera.
How do I change the resolution in case of full screen in this example?
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by skinkairewalker »

Skipper wrote: Tue Feb 11, 2025 11:31 pm Which of the two adapters do you uses for Ogre? The NVIDIA will likely be the faster one.
Also, make sure you have the latest OpenGl drivers installed for the adapter you're using...
Can I select which adapter to use in ogre3d?
miso
Enthusiast
Enthusiast
Posts: 406
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by miso »

How do I change the resolution in case of full screen in this example?
Use openscreen() instead of openwindowedscreen(), and use it with a choosen resolution for a true fullscreen.
Fred
Administrator
Administrator
Posts: 18150
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by Fred »

I noticed slower perfs than usual when enabling shadow, we will try to look at that after 6.20
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by skinkairewalker »

I'm doing some tests to find out if there is a problem with drivers or system configuration.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by skinkairewalker »

Is it possible to choose which video card to use manually or automatically to obtain the best performance?
User avatar
minimy
Enthusiast
Enthusiast
Posts: 551
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by minimy »

Skipper wrote: Tue Feb 11, 2025 11:31 pm Which of the two adapters do you uses for Ogre? The NVIDIA will likely be the faster one.
Also, make sure you have the latest OpenGl drivers installed for the adapter you're using...
Hello Skipper! How you change the graphic card ? Is this possible?
Can put an example please. Thanks
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by skinkairewalker »

Is there a method to force Windows to dedicate maximum performance to a specific application? The question is: why not integrate this into Ogre or some feature that forces operating systems to dedicate full power to our PB application?

https://www.youtube.com/watch?v=0vJR3UUGFzg
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 385
Joined: Thu Jul 09, 2015 9:07 am

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by pf shadoko »

this is not a GPU problem
shadows and skeletal animations have been very slow since PB 6.20, so I've made 2 functions to manage them via shader
viewtopic.php?p=642095#p642095
Fred
Administrator
Administrator
Posts: 18150
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Is it possible to force maximum use of the video card with ogre3d?

Post by Fred »

Also using the other GPU is a Windows thing, it shouldn't be the app which decide which one to use.
Post Reply