Log In  
Log In  

@jobe

Follow
Follow

I have this bit of code:

  if f==1635 then
   sspr(0,32,128,64,64,64)
   sspr(0,32,128,64,-64,64,128,64,true,false)
   sspr(0,32,128,64,-64,0,128,64,true,true)
   sspr(0,32,128,64,64,0,128,64,false,true)
  end

which causes the CPU load in a demo I'm working on to go over 1.0, even when f!=1635. If I comment out the sspr functions, the demo runs at 60fps. Is this speculative execution as planned, or is this a bug?

EDIT: I was able to drop the CPU load back under 1.0 by doing it as a separate function, like this:

function drawthese()
 sspr(0,32,128,64,64,64)
 sspr(0,32,128,64,-64,64,128,64,true,false)
 sspr(0,32,128,64,-64,0,128,64,true,true)
 sspr(0,32,128,64,64,0,128,64,false,true)
end

...

  if f==1635 then drawthese() end
P#62828 2019-03-15 11:31 ( Edited 2019-03-15 11:35)

Demo for the demo competition at the Instanssi 2019 demoparty, held in Jyväskylä, Finland in march 2019. Won first place.

Again, it might run correctly in a browser but there might also be some sync issues (specifically in Chrome, in my experience). The cart runs just fine in PICO-8 itself, of course.

Cart [#techno_utopian_edict-0#] | Code | 2019-03-03 | License: CC4-BY-NC-SA | Embed
27

P#62464 2019-03-03 18:30

Cart [#55716#] | Code | 2018-08-26 | License: CC4-BY-NC-SA | Embed
33

A demo by Jumalauta. Participated in the demo compo at the JML 18 years anniversary demoparty, won first place.

Might not work properly with Chrome, there may be some sync errors and glitches. Should work consistently with Edge. Cart works just fine in the PICO-8 application itself, of course.

P#55718 2018-08-26 11:16 ( Edited 2018-09-04 06:35)

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-03-21 19:58 | 0.078s | 4194k | Q:34