Re: Project ZeC (My Zelda-esque Clone)
Reply #247 –
I read somewhere about how comments, formatting and trailing spaces can affect frames per second. I went through a few of my major *.js files, removed unneeded comments, reformatted some of the code and removed all trailing spaces. I then tested in Sphere and miniSphere. One notable difference was the scrolling inventory function. Before I did this the inventory would move at a stead pace up and down the screen. Now, in Sphere it was at the top of the page in a blink of an eye. Below are the frames per second while performing the scrolling inventory. Can the comments, formatting and trailing spaces really affect the code that much to have the frames per second go so high?