Suggestion: make startup gl check independent of game code

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
tjreedy
Newbie
Posts: 5
Joined: Fri Oct 30, 2009 1:39 pm
Location: Delaware, USA
Contact:

Suggestion: make startup gl check independent of game code

#1 Post by tjreedy » Mon Nov 22, 2010 12:37 am

Problem: at some point during development, renpy started flashing a seemingly random image from the game for a fraction of a second during startup.

Solution: my wife, the content person, had innocently named an image 'black'. It turns out 1) that renpy (6.11.1) tests whether it can use gl by trying to display an image called 'black', and 2) it uses the same image namespace as the game. So 'black' is effectively a reserved image name, though not documented as far as I ever noticed.

Suggestion: as long as 2) above is true, follow Python's internal name convention and use a name like __gl_test_black__, or, if it is used for other internal purposed, __internal_black_image__, for the test image that effectively will not conflict with user names.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Suggestion: make startup gl check independent of game co

#2 Post by PyTom » Mon Nov 22, 2010 12:57 am

This can be configured using config.gl_test_image - but your point stands.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users