Jump to content

Need hack to specify graphics device


Flexman
 Share

Recommended Posts

I just read the pinned post about Intel/ATI graphics GPUs, we recently came across this in the wild when testing our game.

 

I want to know if there's some method with Leadwerks engine to enumerate and specify a graphics device before initialization? Some of us have multiple displays that want to run in true full-screen without having to use a borderless/full screen window which is a performance sink.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

There is some ATI extension for selecting a particular discrete GPU when multiple GPUs are in use. ATI switchable graphics do not provide any mechanism for the programmer to specify that the discrete GPU should be used. The user has to create a profile for the application.

 

Nvidia/Intel discrete graphics can be enabled just by importing this C file into your project:

//Hack to force NVidia discrete card when integrated graphics are present:
//http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf -  Page 3
#include <windows.h>
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;

 

This is automatically done in Leadwerks 3.1.

  • Upvote 1

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...