forked from SilverStudioGames/WTS
Image cache preference
* Added image cache size preference * Increased default image cache size 300MB-> 512MB * Fixed get_gpu_info function to encode bytes to string before joining * Fixed missing bar images
This commit is contained in:
parent
98ba4d03a2
commit
5a8e4d85ab
@ -204,6 +204,8 @@ image light_slider_full = "gui/slider/light_full.png"
|
|||||||
image scrollbar_horizontal_idle_thumb = "gui/scrollbar/vertical_idle_bar.png" #Solid(gui.accent_color)
|
image scrollbar_horizontal_idle_thumb = "gui/scrollbar/vertical_idle_bar.png" #Solid(gui.accent_color)
|
||||||
image scrollbar_horizontal_hover_thumb = image_hover("gui/scrollbar/vertical_idle_bar.png") #Solid(gui.hover_color)
|
image scrollbar_horizontal_hover_thumb = image_hover("gui/scrollbar/vertical_idle_bar.png") #Solid(gui.hover_color)
|
||||||
image scrollbar_horizontal_insensitive_thumb = "scrollbar_horizontal_idle_thumb"
|
image scrollbar_horizontal_insensitive_thumb = "scrollbar_horizontal_idle_thumb"
|
||||||
|
image scrollbar_horizontal_selected_insensitive_thumb = "scrollbar_horizontal_idle_thumb"
|
||||||
|
image scrollbar_horizontal_selected_idle_thumb = "gui/scrollbar/vertical_idle_bar.png"
|
||||||
image scrollbar_horizontal_selected_hover_thumb = "scrollbar_horizontal_hover_thumb"
|
image scrollbar_horizontal_selected_hover_thumb = "scrollbar_horizontal_hover_thumb"
|
||||||
image scrollbar_horizontal_idle_bar = Solid(gui.muted_color)
|
image scrollbar_horizontal_idle_bar = Solid(gui.muted_color)
|
||||||
image scrollbar_horizontal_selected_idle_bar = "scrollbar_horizontal_idle_bar"
|
image scrollbar_horizontal_selected_idle_bar = "scrollbar_horizontal_idle_bar"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -20,6 +20,7 @@ init python:
|
|||||||
settings.default("preserve_aspect_ratio", True)
|
settings.default("preserve_aspect_ratio", True)
|
||||||
settings.default("animations", True)
|
settings.default("animations", True)
|
||||||
settings.default("updates", True)
|
settings.default("updates", True)
|
||||||
|
settings.default("image_cache_size", 512)
|
||||||
|
|
||||||
renpy.music.register_channel("background", "sfx", True)
|
renpy.music.register_channel("background", "sfx", True)
|
||||||
renpy.music.register_channel("sound2", "sfx", True)
|
renpy.music.register_channel("sound2", "sfx", True)
|
||||||
@ -121,6 +122,10 @@ define config.say_attribute_transition = d3
|
|||||||
|
|
||||||
# Python
|
# Python
|
||||||
define config.open_file_encoding = "utf-8"
|
define config.open_file_encoding = "utf-8"
|
||||||
|
define config.image_cache_size_mb = settings.get("image_cache_size")
|
||||||
|
|
||||||
|
# Debug
|
||||||
|
# define config.profile = True
|
||||||
|
|
||||||
# Garbage Collector
|
# Garbage Collector
|
||||||
# define config.manage_gc = True
|
# define config.manage_gc = True
|
||||||
|
@ -6,7 +6,7 @@ init -999 python early:
|
|||||||
|
|
||||||
def get_gpu_info():
|
def get_gpu_info():
|
||||||
try:
|
try:
|
||||||
info = "\n".join([glGetString(GL_VENDOR), glGetString(GL_RENDERER), glGetString(GL_VERSION)])
|
info = "\n".join([glGetString(GL_VENDOR).decode("utf-8"), glGetString(GL_RENDERER).decode("utf-8"), glGetString(GL_VERSION).decode("utf-8")])
|
||||||
except:
|
except:
|
||||||
info = "ERR: Unknown or incompatible driver."
|
info = "ERR: Unknown or incompatible driver."
|
||||||
return info
|
return info
|
||||||
|
Loading…
Reference in New Issue
Block a user