Add "Startup commands" for launching editors

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
ISAWHIM
Veteran
Posts: 321
Joined: Sun Nov 06, 2016 5:34 pm
Contact:

Add "Startup commands" for launching editors

#1 Post by ISAWHIM »

I ran into an issue, again, where NVIDIA doesn't play well with VSCode. Rather, VSCode fails to use graphics display correctly.

VSCode has an issue with "FXAA", creating a blurry screen in VSCode. It is not just limited to text, it blurs the whole programs contents, like a text-preview window looks.

There are a hand full of solutions, but the easiest one, in most cases, is to just add the "startup commands", below. Added after the programs quoted "target".

Code: Select all

 --disable-gpu --enable-use-zoom-for-dsf
However, RenPy does not allow the selection of a "shortcut", which is the only location this can be added. Instead, it launches a special "Code.exe", which is within renpy's folders, directly. Selecting an external program, as an option, I assume is the same. Launching the EXE directly, instead of a shortcut. Making the above solution impossible.

The second solution is to bring up VSCodes internal launch settings configuration, and add the line below. (You have to google that.)

Code: Select all

"disable-hardware-acceleration": true,
However, when you update VSCode, you will be forced to do that, each update, as RenPy erases all the files before downloading the new ones to replace the old ones, instead of actually just "updating". That file is kept in the same root folder and is erased with the update process.

The third solution is to go to NVIDIA control panel and ATTEMPT to add both versions of VSCode to custom graphics settings. Both the real VSCode program and RenPy's version of VSCode, which is in RenPy's folders, not in VSCode's folders. For me, NVIDIA control panel just throws an error if I try to add the program and change any values to disable FXAA. The only other solution is to disable FXAA, globally, for EVERYTHING. (Which includes all games and other programs where FXAA actually works correctly.)

So...

Please add a "startup command" or "extra startup switches", location to the selection of launching VSCode, or ANY launched EXECUTABLE, so that we can add these, or any other startup parameters... OR, just allow the selection of a "shortcut", instead of launching the EXE directly. Then we can add any startup options to the shortcut, manually, if desired.

User avatar
PyTom
Ren'Py Creator
Posts: 16147
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Add "Startup commands" for launching editors

#2 Post by PyTom »

You can create a new edit.py file similar to the ones in launcher to make these changes.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply