Page 2 of 2
Re: Is it possible to force maximum use of the video card with ogre3d?
Posted: Fri Jan 02, 2026 7:36 am
by miso
Please, test it for differences. I dont have such laptop. You had good results with the compiled exe after forcing nvidia to use dgpu with it?
Re: Is it possible to force maximum use of the video card with ogre3d?
Posted: Fri Jan 02, 2026 7:16 pm
by skinkairewalker
Is it possible to do this in PureBasic, according to the documentation?
Nvidia (
https://developer.download.nvidia.com/d ... licies.pdf)
Code: Select all
extern "C" {
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
AMD
Code: Select all
extern "C"
{
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
something like this ??
Code: Select all
Global NvOptimusEnablement.l = 1
Global AmdPowerXpressRequestHighPerformance.l = 1
If InitEngine3D()
OpenWindow(0, 0, 0, 800, 600, "GPU Test", #PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0), 0, 0, 800, 600, 0, 0, 0)
CreateCube(0, 1)
CreateEntity(0, MeshID(0), #PB_Material_None)
Repeat
RenderWorld()
FlipBuffers()
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf