Poor Renpy animation performance with laptop with nVidia GPU and on board video. How to use GPU?

Smarmint

Well-Known Member
Mar 23, 2019
1,220
4,849
I've noticed poor performance in some Renpy games. I have a laptop with a nVidia GPU as well as on-board intel UHD graphics. Looking at task manager / performance tab, I see that Renpy is using the on board intel graphics (GPU 0 in task manager), rather than the nVidia GPU (GPU 1).

Is there a way to force Renpy to use the nVidia GPU for Renpy games? I have tried various graphics options and each of the available renderers (Shift-G) in Renpy, and even used the Windows 10 graphics options to try to force Renpy in to performance mode to use the nVidia GPU, but it always uses GPU 0, which is the Intel on board video.

Is this a Renpy limitation, where it can't use a GPU when on-board video is detected? Anyone with a second nVidia GPU enabled laptop gotten Renpy games to use the nVidia GPU?

Thanks.
 

Count Morado

Devoted Member
Respected User
Jan 21, 2022
8,352
16,106
I've noticed poor performance in some Renpy games. I have a laptop with a nVidia GPU as well as on-board intel UHD graphics. Looking at task manager / performance tab, I see that Renpy is using the on board intel graphics (GPU 0 in task manager), rather than the nVidia GPU (GPU 1).

Is there a way to force Renpy to use the nVidia GPU for Renpy games? I have tried various graphics options and each of the available renderers (Shift-G) in Renpy, and even used the Windows 10 graphics options to try to force Renpy in to performance mode to use the nVidia GPU, but it always uses GPU 0, which is the Intel on board video.

Is this a Renpy limitation, where it can't use a GPU when on-board video is detected? Anyone with a second nVidia GPU enabled laptop gotten Renpy games to use the nVidia GPU?

Thanks.
This appears to be purposeful.

Have you tried? (yes, you would have to do this for each of the Ren'Py games you are wishing to apply this to)
 

Smarmint

Well-Known Member
Mar 23, 2019
1,220
4,849
This appears to be purposeful.

Have you tried? (yes, you would have to do this for each of the Ren'Py games you are wishing to apply this to)
Thanks. I tried the technique from the Intel page, and it still uses integrated graphics.

I can live with it. It's just some animations and page transitions are strangely choppy. I can run GTA5 easily, so its not my PC.
 
  • Like
Reactions: Count Morado

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,971
16,229
Thanks. I tried the technique from the Intel page, and it still uses integrated graphics.
As implied by PyTom on the page linked by Count Morado, this is a question of user choice, nor of Ren'Py choice. Therefore it's something (I don't know why for sure) on your OS configuration that make Ren'Py believe that it should use GPU 0.

This being said, most users don't have this kind of problem because they don't have a monitor plugged to their embedded GPU. Therefore their OS don't even consider it as a possible choice.
 

Meaning Less

Engaged Member
Sep 13, 2016
3,539
7,178
If you have a notebook try disabling your integrated graphics, this helps avoiding these types of conflicts and in general there is little to no reason to ever use integrated graphics anyways.
 

Smarmint

Well-Known Member
Mar 23, 2019
1,220
4,849
Thanks for the suggestions. With a notebook that comes with an extra video card, it uses the integrated graphics for Windows and most windows apps that are not 3D intensive. This saves battery life, and excessive heat, since integrated graphics are good enough for most use other than 3D games and rendering. The PC usually switches to the nVidia graphics card, which is not visible to the user, for any 3D games, so that the user can get the much better graphics performance of the card.

However, since Renpy is mostly 2D, other than animations, it seems to be locked by Windows to the integrated graphics, so the animations still play on the integrated GPU rather than the external GPU. Just wondering of others with a similar gaming style laptop had any workaround, and if it makes any difference with performance. It seems that that is just the way it works for Renpy.
 

FinderX

Member
Jan 15, 2018
103
74
Thanks for the suggestions. With a notebook that comes with an extra video card, it uses the integrated graphics for Windows and most windows apps that are not 3D intensive. This saves battery life, and excessive heat, since integrated graphics are good enough for most use other than 3D games and rendering. The PC usually switches to the nVidia graphics card, which is not visible to the user, for any 3D games, so that the user can get the much better graphics performance of the card.

However, since Renpy is mostly 2D, other than animations, it seems to be locked by Windows to the integrated graphics, so the animations still play on the integrated GPU rather than the external GPU. Just wondering of others with a similar gaming style laptop had any workaround, and if it makes any difference with performance. It seems that that is just the way it works for Renpy.
Hi, try this workaround.
Download the latest renpy SDK from github and run this command (i use linux but you can adapt if you use windows):

/path/to/renpy-8.1.3.X/renpy.sh /path/to/game-with-problems

I had resolved my video performance this way, maybe this can help you out.