We’re about to launch a playcanvas app and host it ourselves combined in a wordpress site. I’m in the process of optimizing performance. I’ve measured with the profiler but also with Chrome development tools on the networking tab. Brilliant tool indeed!
I got the app down to about 6 MB download for the client when on launch.playcanvas.com, however as soon as I launched it on my own service provider the size of individual assets bumbed a lot. Look at this particular json model for example:
Great, thanks! I’m chatting to my shared host support now. He says I should be able to enable it using .htaccess files only. Trying to figure out the code to use now. I wonder if it’s enabled broadly on all content types or If I need/should have to specify specific ones.
Darn, I can’t get this to work properly. I add the code listed in the link you provided (which is the same one.com support talked bout. However, when I add i to a the .htaccess file allready present (with some previous wordpress code in there) I get a 500 Internal server error
In the end I removed that Directory-tag and now I don’t get the error anymore. However, I’m not sure I get the compression either. I’ve tried a couple of other setups for .htaccess I found across the web including this one below. However, while https://checkgzipcompression.com/?url=http%3A%2F%2Fwww.simsmining.eu%2F reports I do have Gzip compression (which I allready got before changing anything in .htaccess), the fact remains that the app is a lot larger when hosted on one.com than on playcanvas. That 7MB for the json model compared to 1.5MB difference is still there when measured with the network tab/chrome development tools. What am I missing?
bumping this thread to troubleshoot a large performance difference of playcanvas apps while hosted on playcanvas/AWS vs. hosting them as static web apps over at azure.
see the size difference reported by chrome devtools on the top two glb-files.
This is a server configuration issue, and depends from server to server. This is not something PlayCanvas can do for you or some setting in the project. You should probably google it, or ask AI by specifying your server stack and how to enable compression on static assets.
PS
If you have some questions regarding performance, or load times of assets from the engine perspective, feel free to create a new topic. I will close this old one.
Did you resolve this? As @LeXXik says, this is a server configuration issue. On playcanv.as, we have configured the server to serve GLB file with GZIP encoding. You need to set up the same for your Azure host.