Yes I'm pretty sure is because you use a different "code" from what the web uses. The only thing I can recommend is to try searching online ways to make your game less heavy! For example with rendering, that seems difficult but also fun to learn