Scott.McNab Posted August 22, 2017 Share Posted August 22, 2017 I have a laptop which has two GPUs - an integrated Intel HD Graphics 350, and a discrete NVIDIA Quadro M1200. Is there some command-line or configuration option that can select which GPU to use? I can only find the -video_app option to select between OpenGL/DirectX etc. For example, I see this output in the console: ---- Render ---- Renderer: NVidia 4096MB OpenGL vendor: Intel OpenGL renderer: Intel(R) HD Graphics 530 OpenGL version: 4.3.0 - Build 21.20.16.4664 OpenGL flags: Core Profile Found required GL_ARB_gpu_shader5 Found required GL_ARB_geometry_shader4 Found required GL_ARB_shader_bit_encoding Found required GL_ARB_tessellation_shader Found required GL_ARB_texture_storage Found optional GL_ARB_compute_shader Found optional GL_ARB_shader_image_load_store Found optional GL_ARB_shader_storage_buffer_object Found optional GL_ARB_clip_control Shading language: 4.30 - Build 21.20.16.4664 Maximum texture size: 16384 Maximum texture units: 192 Maximum texture renders: 8 It appears to detect both NVidia and Intel GPUs, but then decides to use the Intel GPU? How can I select this? Thanks 1 Link to comment
silent Posted August 22, 2017 Share Posted August 22, 2017 You can manually select nVidia GPU by adding following code in your application: extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; } https://stackoverflow.com/a/14041061 Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
aka3301 Posted August 8, 2019 Share Posted August 8, 2019 My PC has two graphic card which was "NVIDIA 2080 Ti" . In this case, may I select which GPU to use? Link to comment
morbid Posted August 8, 2019 Share Posted August 8, 2019 Hello, In 2.8 we've added new option that allows to choose the GPU. It's called -video_adapter. For instance, you can run your app like this: my_application.exe -video_adapter 1. This will enable second available GPU in your system List of available GPUs can be found in the engine's log. You can find more info here: https://developer.unigine.com/en/docs/2.8/code/command_line If you use earlier version I suggest applying method described above. Thank you. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
aka3301 Posted August 12, 2019 Share Posted August 12, 2019 (edited) This is exactly what I need, thanks a lot. Edited August 12, 2019 by unisol3 Link to comment
Recommended Posts