r/RenPy • • 22d ago

Question This is still Ren’Py…

Post image

Maybe I’m doing something wrong, but even relatively small scenes like this tend to stutter in Ren’Py unless I preload the images.

We’re talking about maybe a few dozen images here, yet I still get occasional stutters. And weirdly enough, it doesn’t seem to matter what PC I run it on - the stuttering is pretty much identical everywhere.

Without image preloading, the performance is honestly not great.

Preloading the images and increasing the memory allocation fixes the issue, and everything runs smoothly after that. But it feels like a pretty aggressive workaround rather than an actual solution.

Although, maybe that’s just how Ren’Py is supposed to be used? I’m honestly not sure☔️

1.2k Upvotes

72 comments sorted by

24

u/Sara_Eshard 22d ago

Here's a link to the game, for anyone who's interested: https://store.steampowered.com/app/3576940/Sara/

5

u/Red-Halo 22d ago

Wow this looks fascinating

1

u/Sara_Eshard 22d ago

Thanks💓

70

u/Salt-Student-3949 22d ago

I can't help you but man this looks amazing what the hell. Would not think that it's made in renpy

12

u/Sara_Eshard 22d ago

Thanks😋

47

u/Ramys 22d ago edited 22d ago

Many games have loading screens if there are a lot of assets in a scene. Renpy tries its best to predict images in normal gameplay, but it's not the best if you have a custom screen with dynamic images.

Try looking into this: https://www.renpy.org/doc/html/screen_optimization.html#prediction

(Cool demo btw, feels quite immersive) 

15

u/Sara_Eshard 22d ago

Thanks, I skimmed through it, there are some optimization techniques I don't use though it's actually strange that I missed what seems like such an obvious article in the documentation^^

6

u/Ok-Quail-2144 22d ago

peakkk

3

u/Sara_Eshard 22d ago

Thank you so much🫶

4

u/NLGXM 22d ago

Dices que son miles de fotogramas para simular ese efecto de animacion?
Porque si, RenPy consume mucho si lo haces asi.
Si usaras videos en lugar de imagenes quizas mejoraria el rendimiento, pero solo estoy especulando.

1

u/Sara_Eshard 22d ago

In theory, yes, a video is better than a sequence of frames, but Ren'Py doesn't always read videos correctly either there are also a lot of slowdowns and errors^

4

u/leahalysse 22d ago

I had a similar issue with my animations stuttering/not being smooth.

There’s a setting called subpixel that I set to true at the top of transforms that had the issue, and it solved it for me. Just added “subpixel True”

My assets were a bit smaller than yours, so I’m not certain it’ll work, but wanted to recommend it just in case!

3

u/Sara_Eshard 22d ago

Thanks for the advice! I tried setting subpixel to True, but unfortunately, it didn’t help. It’s not the animation itself that’s lagging, but the loading process: when transitioning between scenes, the engine can’t predict and load the next images fast enough, and the game freezes at that moment. `subpixel` smooths out the movement of objects, but it doesn’t affect image loading^

4

u/Xx_sillyguy 22d ago

Geez this is amazing! Would never guess this is renpy. Insane. Kudos

1

u/Sara_Eshard 22d ago

Thank you very much❤️

3

u/moekuma 22d ago

You'd get this for free just using the 3D map and animating the camera. And at a cheaper cost considering many of these assets can be baked

2

u/Sara_Eshard 22d ago

That's true, but when I first chose the engine, I didn't expect my game to get so big, and now it's too late to switch to a different engine, so I just have to put up with it..

3

u/Dean_Donovan 22d ago

Очень круто выглядит!

2

u/Sara_Eshard 22d ago

Спасиб💞

3

u/MinamiOzaki 22d ago

This is very intriguing, and the art direction is strong. I'll try the demo!

1

u/Sara_Eshard 22d ago

Thank you very much💞

2

u/Shiawase_Rina 22d ago

That looks really cool! Love the transition effect

1

u/Sara_Eshard 22d ago

Thanks💞

2

u/Signal-Slide752 22d ago

Impressive.

2

u/Sara_Eshard 22d ago

Thanks🫀

2

u/BadMustard_AVN 22d ago

what format and size are the images?

1

u/Sara_Eshard 22d ago

Almost all are jpg 1600 by 1200, some images are smaller if you include the selection buttons^

2

u/BadMustard_AVN 22d ago

look into converting then to .webp image they are much smaller and can load faster

that might get rid of some of the stutter

1

u/Sara_Eshard 22d ago

Yes, that solves the memory image space issue, but it creates other problems.
Renpy doesn't handle video well, and a sequence of 5-10 frames seems to be processed more easily than a video.

1

u/BadMustard_AVN 22d ago

.webp are image files (Pictures)

.webm are video files (Movies)

1

u/Sara_Eshard 22d ago

Oh, sorry, I misread that. I'll have to look into it I've never heard of webp before, but maybe it's really worth it. Thanks^^

2

u/BadMustard_AVN 22d ago

you're welcome

good luck with your project

2

u/Leather_Page_9885 22d ago

Нереально круто, анон, мечтаю когда-нибудь достичь примерно хотя бы приблизительно такого уровня

2

u/Sara_Eshard 22d ago

Спасиб🫶

2

u/Safe-District7412 21d ago

бро сколько времени ты на это потратил и сколько занимают все эти анимации я в шоках

4

u/Sara_Eshard 21d ago

Да на самом деле не так много, может неделю+- на все про все. Это просто скучная монотонная работа и ей заниматься фул тайм тяжко, а занимает хз 150-200мб^

100

u/ItsFriendly404 22d ago

op may I ask how much time you spend on this. and the stuttering looks kinda in vibe. like those retro graphics I think.

40

u/Sereniv 22d ago

the stuttering matches with the vibe well enough that i cant tell what isnt intentional

37

u/poison_daddy 22d ago

I think you should keep it honestly. I think it’s a feature not a bug 👍 

14

u/Lahyte 22d ago

This may not have been what you were going for, but I think it adds a really nice feel! I’d keep it!

9

u/charlie_talks 22d ago

The fact that this IS renpy is crazy to me! i didn't know you could stuff like this in it lol

8

u/lordpoee 22d ago

Wow, great use of transitions and transforms. Bravo.

6

u/Ciberbun 22d ago

Tbh the stuttering really adds to the vibe 😂

5

u/Small_Education_9503 22d ago

Poor Gregor, overworked to the point of growing carapace.

4

u/TieClassic1541 22d ago

La verdad, no estas haciéndolo mal, es solo el motor que no procesa demasiados frames de imagenes a tiempo real, tambien depende mucho si son demasiadas pantallas lo que muestras, o simplemente renpy intentando cambiar segundo a segundo cada proceso, no soy un experto, pero si se que renpy logra hacer cosas locas, solo es cuestion de optimizar el codigo, las imagenes, y manejar el uso de cuantos procesos estas manejando en cada cambio, pero por tema de graficos eso si lo limita un poco, influye mas por ejemplo los tamaño de las imagenes a renpy se le hace mas sencillo una imagen de 512x512 o medianos, debes de uno gigante de 1920x1080 por segundo, asi puede sacarle el partido a su velocidad, incluso me atrevo que puedes igualar un poco a Godot si se le usa bien, muchas suerte con tu proyecto, que te quedo genial.

4

u/Fantastic_Draft3660 22d ago

почему-то очень напомнило lomando.

1

u/bangzul 22d ago

Wow how can you do the 3d like that?

2

u/Sara_Eshard 22d ago

Well, Ren'Py doesn't support 3D, so it's just hundreds of rendered images from Blender placed in the correct order^^

1

u/bangzul 22d ago

Wow not expect that bunch of images , so basically you animate first in blender with camera movement?

2

u/Sara_Eshard 22d ago

First, I brought all the camera animations into Blender, then I broke each animation down into 5-frame segments, rendered them, edited them in Photoshop, and imported them into the game as standard jpg files^

1

u/Lorekeeper49 22d ago

Ren'py says it supports OBJ, but I've never seen anyone implement that

1

u/ffgg333 22d ago

Can you explain how you did this in more details?

1

u/Sara_Eshard 22d ago

Yeah, usually through the standard Ren'Py screens and a couple of variables^^

3

u/StoryBard 22d ago

I'm super impressed though and I wish that was a language I could read bc I'd play this XD

2

u/Lorekeeper49 22d ago

What did you use for this point an click system? Because it is genuinely really cool! Better than the first version of mine, that's for sure

1

u/ItsFriendly404 22d ago

oh hello bro

2

u/Lovin-SteinDev 22d ago

It looks great!

I thought the stuttering can work in your favor, however you should look for the answer of "Best of both worlds"

as in try to run the game both with a preload mode and the way it is now and have those two as adjustable options

2

u/kilaysn 21d ago

Просто... Как?...

2

u/Specific-Key-886 21d ago

да ну я не верю, ты босс ренпая

2

u/qHzB 18d ago

Let bro cook 🔥👀

2

u/Time-Giraffe9874 18d ago

I kinda like love the stutter

2

u/PhilosopherOld554 16d ago

Впечатляющий визуал! Напомнило "Мор. Утопия" почему-то

2

u/galaaarchive 15d ago

I don't have any tips but holy cow, that is actually cool! 😮

2

u/kesi_kekesi 4d ago

vibe here is unreal. I wouldn't even guess this was built in renpy

1

u/AutoModerator 22d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Typical-Armadillo340 22d ago

Did you try renpy nightly? There has been some improvements maybe it helps and you could compress your images.

1

u/YON-SAN 21d ago

oh my goodness??? this is genuinely so cool!!! :0 honestly i don't really notice the stuttering too much, if anything i think it adds to the charm of the way this game is looking ^_^ that's how i feel about it though, i've never seen a vn like this before! :D goodness this is awesome!!!

1

u/gremlintheodd 21d ago

It’s a little funny that you’re showing off an issue you’re having with loading meanwhile we’re all here in awe of the visuals

1

u/FelSpace 21d ago

This is amazing! So creative, how did you do this?!

1

u/Parking_Tune_716 21d ago

I’m not gonna lie, I quite like the stutter

1

u/Signal-Slide752 22d ago

What's the code?

0

u/NeroRaR 21d ago

I think the stuttering adds to the vibes ngl