Page 1 of 2

Physics determinism test

Posted: Fri Dec 17, 2021 9:50 am
by grump
I wonder if this is guaranteed to result in the same final image everywhere.
hello.png
hello.png (44.52 KiB) Viewed 7512 times

Re: Physics determinism test

Posted: Fri Dec 17, 2021 9:53 am
by GVovkiv
Yeah?
Screenshot from 2021-12-17 11-52-18.png
Screenshot from 2021-12-17 11-52-18.png (85.05 KiB) Viewed 7508 times

Re: Physics determinism test

Posted: Fri Dec 17, 2021 9:57 am
by grump
"Everywhere" meaning every supported platform, architecture and device.

Re: Physics determinism test

Posted: Fri Dec 17, 2021 10:16 am
by darkfrei
Nothing happens

Re: Physics determinism test

Posted: Fri Dec 17, 2021 10:20 am
by pgimeno
Nice test!

Works in my desktop and phone. For the phone I had to add this line to love.draw:

Code: Select all

love.graphics.scale(math.min(love.graphics.getWidth()/800,love.graphics.getHeight()/600))

Re: Physics determinism test

Posted: Fri Dec 17, 2021 11:38 am
by knorke
looks the same on win10 64bit

Re: Physics determinism test

Posted: Fri Dec 17, 2021 12:54 pm
by grump
pgimeno wrote: Fri Dec 17, 2021 10:20 am For the phone I had to add this line to love.draw:

Code: Select all

love.graphics.scale(math.min(love.graphics.getWidth()/800,love.graphics.getHeight()/600))
Ah. I guess on phones you always have to check what size the "window" is? Is love.resize being called in this situation?

Re: Physics determinism test

Posted: Fri Dec 17, 2021 1:54 pm
by gianmichele
M1Pro OSX 12.1

Screenshot 2021-12-17 at 13.53.29.png
Screenshot 2021-12-17 at 13.53.29.png (203.05 KiB) Viewed 7414 times

Re: Physics determinism test

Posted: Fri Dec 17, 2021 2:13 pm
by pgimeno
grump wrote: Fri Dec 17, 2021 12:54 pm Ah. I guess on phones you always have to check what size the "window" is? Is love.resize being called in this situation?
I don't know, but I wouldn't rely on it as it starts in this mode. Phones are basically in forced fullscreen mode from the beginning.

Re: Physics determinism test

Posted: Fri Dec 17, 2021 2:26 pm
by grump
This one scales and centers, should look correct on phones. I also didn't call physics.setMeter before. So it should still spell out "HELLO!" but it looks different from the first version.