Add FAQ about default laptop GPU usage.

master
dnxa 1 year ago
parent
commit
08cb1e2180
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      Frequently-Asked-Questions.md

+ 17
- 0
Frequently-Asked-Questions.md

@ -21,6 +21,7 @@
- [How do I setup a custom icon for my executable?](#how-do-i-setup-a-custom-icon-for-my-executable)
- [How I deal with UTF-16 strings?](#how-i-deal-with-utf-16-strings)
- [Why does `DrawMeshInstanced` not draw anything?](#why-does-drawmeshinstanced-not-draw-anything)
- [Why is raylib using integrated graphics when a dedicated GPU is available?](#Why-is-raylib-using-integrated-graphics-when-a-dedicated-GPU-is-available)
## Can I run raylib in my old PC?
@ -420,3 +421,19 @@ void main()
```
</details>
## Why is raylib using integrated graphics when a dedicated GPU is available?
The GPU used is set by the user through the GPU vendor’s control panel. If you think it’s crucial that a dedicated GPU is used in your program, you can add the following code anywhere in your code to force the use of dedicated AMD or NVIDIA GPUs.
```c
#ifdef __cplusplus
extern "C" {
#endif
__declspec(dllexport) unsigned long NvOptimusEnablement = 1;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
#ifdef __cplusplus
}
#endif
```

Loading…
Cancel
Save