So what was I doing you ask!? I was trying to make sure that the game will run at a whopping 60 fps on any computer. It turns out that by using the normal Unity sprite renderer for every tile on the screen was a bad idea. It was making a call to the graphics card for every tile. This resulted in 100's of calls to the graphics card every frame of the game! I didn't notice this for quite a while because a modern gaming PC can handle this just fine, but when I tried to load the game on my phone it ran at 1 fps or worse.
Something that you might be surprised to hear is that making games in general isn't that hard. The tools are so good that I am confident that most people who wanted to could figure out how to make a game. However, what makes great game developers great is their ability to make the game perform well even on old machines. This requires you to employ lots of design patterns and techniques that professional software developers use. You need to understand concepts such as memory utilization, garbage collection, algorithm complexity and much more.
Dark Legacy Comics: Lag |
In the next build (v0.5) you can expect for the environment to change dramatically. We will be trying out a more pirate based theme which will take place on ships and whatnot. So, look forward to that!
No comments:
Post a Comment