🚀 perf: Performance and Memory optimization

This commit is contained in:
2026-07-14 05:49:10 +07:00
parent 2c533d29f7
commit dbf318a20e
10 changed files with 300 additions and 85 deletions
+8 -7
View File
@@ -1,12 +1,7 @@
HOST=0.0.0.0
PORT=22
# Generation settings
# Stored frame resolution in pixels. Higher = sharper but bigger .tsf files.
# regenerate your frames after changing it.
FRAME_RESOLUTION=512
# Playback settings.
# Playback settings
# Playthroughs before the session is closed (0, unlimited).
MAX_LOOP=5
# Whether to keep looping the same frame set or pick a random one after each
@@ -30,7 +25,13 @@ INVERT=false
FORCE_GRAYSCALE=false
# Max rendered width/height in characters.
MAX_DIMENSION=1080
MAX_DIMENSION=512
# Memory budget in MB for the rendered-frame cache (0 disables caching).
RENDER_CACHE_MB=256
# Go soft memory limit; set below your container limit to avoid OOM kills.
GOMEMLIMIT=1GiB
# Connection limits. New connections over a limit are dropped immediately.
# Max simultaneous connections from a single client IP.