Render problem ? Maybe?

For a while now I’ve been trying to make an advanced game that is similar to Astro’s playroom on playsation. Right now I am in the middle of a big problem and it’s something about the render of the assets in the game maybe ? But I’m not sure because just a few days ago (3 days ago) I could load up my game and play it on pc with ease. I believe after I imported a basis system to all the texture the game has had trouble loading my game at a faster rate like before, it started to act laggy & not load the scene completely when I would try to play my ice level, I need help to see what the problem is I have tried to fix it by turning the render down as low as possible in the editor and remove assets but nothing worked, can someone please help me

The ice level editor - (PlayCanvas | HTML5 Game Engine)
The game’s files/codes - (PlayCanvas | HTML5 Game Engine)

Hi @Kelvin_Riley2!

I tried to test your project, but it’s starting with some errors.

That makes it unable for me to test your project, so I suggest to solve the errors first.

So you’re saying I need to fix the scripts that’s an error first before you can see the problem?

Yes, because an error prevents a project from working as it should.

I believe that there is a entity I have in my project that has this script that’s makes a error and I can’t find it because I have so many entities in my project, do you believe you or somebody can help me dig through the project to delete the script ?

The first error is coming from testLocker.js, because you call the function addItem() on an incorrect place of the script. I suggest to disable or remove line 65 of this script.


image

The second error is coming from portalNormEffect.js, because you try to play a sound from an incorrect place of the script. I suggest to replace or remove line 15 of this script.

The third error is coming from portalSloMoeffect.js, because you try to play a sound from an incorrect place of the script. I suggest to replace or remove line 14 of this script.

1 Like

I’m about to fix them , when I update you on it can you test it out ? I’m on my Chromebook and it doesn’t have enough storage to let me play.

I have fixed all of the errors ! Can somebody please test the scene out again to see if that helped the in-game fps/lag better ? give back back feedback with screenshots please.

How do you test your project, because I’ll start with some following errors. (Because the previous errors are fixed, the game can continue until another error occurs).

If the project doesn’t run smoothly, it’s usually caused by high-resolution textures or bad coding. A shader can also cause problems. See the page below for more information about optimization. Go through all the topics of optimization to see which ones you can apply.

1 Like

Do you think you can try it out again ? when I play my game I start from this scene (PlayCanvas | HTML5 Game Engine) because when I start my game it will load up and start from here

Still an error, but at least I was be able to play a bit on my laptop. My mobile can’t handle it, so your project is still too heavy I guess. There are a lot of textures with a resolution of 2048x2048, for example in the characters folder. In most cases a texture with a resolution of 512x512 is enough. There are also some textures with a loading issue, no idea why but maybe you can make the resolution lower and try to upload them again. In general I suggest to clean the project a bit and only keep what you need.

1 Like