Skip to content

Sometimes the canvas gets flipped on the xy axis

image

Conversation from temporary bug tracker:

Thread Name: sometimes the canvas gets flipped on the xy axis
Thread Members:
- ategon:    @ategon@programming.dev / https://me.programming.dev/@Ategon
- grant:     @grant@toast.ooo        / @grant@grants.cafe
- scraft161: @scraft161@tsukihi.me

scraft161 : that's ... a ... bug ... ?
scraft161 : I thought it was some weird gimmick that wasn't properly implemented; but the odd behavior now makes a lot of sense
    grant : didn't really notice it until now because my test canvas is just a bunch of randomly placed pixels
scraft161 : if you have (de)serialization code check that; you likely messed up something in there regarding what axis to loop on first
    grant : yeah
    grant : like a couple weeks ago i noticed it was flipped
    grant : so i might've just done a half-assed attempt at fixing it
scraft161 : I also noticed that around the flips the canvas seems to blank itself for a bit and I have to manually refresh for it to update (at least from the little I messed with it)
scraft161 : ok, so the flips seel to be partial or only cosider data before/after a certain point...
   ategon : yeah the p.d logo and the orange rotated but everything else didnt
   ategon : my canvas was showing only those and some changes in the bottom right for a bit before it rotated
scraft161 : yeah, the flips are super weird
scraft161 : seems like this is related to saving...
            only stuff from after the last flip is affected
scraft161 : a reversal in the saving code would explain all the behavior pretty well
    grant : Note to me when I have time:
            **check database to Redis cold boot cache**