Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello Fenkis! Hope you're doing well :) Thank you for the fantastic shader support! I have a (hopefylly) quick question... For some reason when I use this shader, the game becomes extremely slow and my computer gets super laggy. Checked the GPU and it looks like it was using... 99% of it! Which is... weird? I don't think it's supposed to do that? Am I doing anything wrong?  😅 My renpy scene is a label with a bunch of imagebuttons on the wall where players can click on to learn more. 

This is the code:



And this is a video showing how slow it gets. You can see when the last line of the dialogue ends, the window takes time to disappear, mouse movement is slow, and the outline takes a while to complete. 

Unfortunately I can't replicate the behaviour you're seeing on my own device; I tested with the transform in your screenshot with a loop over 25 imagebuttons.

That said, what I do suspect - are you using imagebuttons that are the size of the full screen + focus_mask True to have only the hover area be the opaque part of the image? This is known to cause a lot of performance issues (independent of the outline shader) due to the cost of the calculations Ren'Py runs to test for pixel transparency when hovering over an imagebutton. If you have several full-size images on top of each other, Ren'Py is running calculations on the transparency of the pixels of all of them. To avoid this, I suggest you cut down the transparency to only be a little larger than the button image itself (the padding is so that the outlines will still work nicely) and position it in-game with xpos/ypos.

Ah! I see! That might be it... (full screen images with focus mask, just when I thought it would save me time rather than placing it manually haha). Thank you for the fast reply! (For some reason I didn't get a notification).