TIC-80: 0.80 running quite slower than 0.70.6

Yesterday I tried 0.80.1344 and I immediately noticed a considerable difference in one of my games:

0.70.6 (~55fps) 0 70 6

0.80 (~30fps) 0 80

I haven’t tested this on previous 0.80 versions. Only the latest.

I don’t know if this is a TIC-80 problem or a problem on my end. It’s possible that this is caused by my ATI Radeon HD 4070 being old and no longer well supported by TIC-80. If this happens to more people, then it’s probably not a problem on my end.

I created the small test below. Timing that empty loop in 0.70.6 I get on average ~49.5ms, while on 0.80 it’s ~69.5ms.

local fmt=string.format
local t=0
local total=0
function TIC()
   t=t+1
   cls()

   local t1=time()
   for i=1,5000000 do
      --deliberately empty
   end
   local t2=time()-t1
	
   print(fmt("time    - %.2fms",t2),0,8,15,true)
	
   -- average
   total=total+t2
   print(fmt("average - %.2fms",total/t),0,24,14,true)
end

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 27 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Confirmed fixed, performance in 0.90.1554 is now back on par with 0.80.1345. (The performance is still worse than 0.70.6, tho!)

image

Where are you finding the built assets? I see the build step in GitHub actions, but I don’t know where these files are being uploaded to.

@joshgoebel On the build page, scroll down to Artifacts. Those are all downloadable builds. The name “artifacts” is admittedly quite obscure, and you have to be logged in to be able to download them (or even see that those listed artifacts are clickable links).

Oh, good news, it’s actually slightly faster than 0.70!

I wasn’t quite sure which to download, but I downloaded workflows/build/main/tic80-winxp.zip, and my compute_gen function is actually about a millisecond faster in that one, so it’s at 60 fps as well while stressing it.

Just updated the export files to the latest version. I think we can close the issue, thanks all for the help.

The problem was with the updated CMake 3.20 Fixed here 16f1463

Hmm, on my side it takes 2.3Mb only image Something happened with the Github Actions, I’ll try to investigate it soon. Thanks.

I’ll try to analyze it in the profiler.