Log In  

It may be a side effect of fixing the peek4() CPU cycle exploit, but now all “adjusted” functions seem to cost the same as if they were standard Lua API calls.

The following program used to run at 21.6% CPU on 0.1.11f. Now on 0.1.12b it runs at 64.5% CPU!

function _draw()
  cls()
  local i = 0
  for j = 0,10000 do i = bxor(j, shl(i, 3)) end
  print(tostr(stat(1)*100).."% cpu", 2, 2)
end
P#63577 2019-04-16 14:46 ( Edited 2019-04-16 15:03)

Fixed for 0.1.12c, thanks

This was a bug in stat(1)'s reporting rather than a change to the 'actual' (pico-8) cpu usage. So carts under 0.1.12b aren't running any slower, but they say they are. And yes -- it's basically showing what the underlying Lua vm costs are.

P#63579 2019-04-16 16:49

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 23:29:14 | 0.005s | Q:12