Page 1 of 1

Does the parallax library cause any sort of slowdown for others?

Posted: Thu Sep 01, 2016 1:13 pm
by HunnyBon
I'm asking this because I'm running Linux, using Wine to run SMBX with lunalua, I'm not sure if it's a situation with wine or just the engine not handling 3/4 paralaxing backgrounds.

Code: Select all

function onStart ()
	walljumps.slideSpeed = 2.5;
	walljumps.jumpIntensityX = 4.0
	bg0 = paralX.create ({image=bgwater, y=80, priority=-96, repeatY=false, parallaxX=0.4, parallaxY=0.2})
	bg1 = paralX.create ({image=bgbackhills, y=50, priority=-97, repeatY=false, parallaxX=0.2, parallaxY=0.19})
	bg2 = paralX.create ({image=bgsky, y=-400, priority=-98, repeatY=false, parallaxX=0.1, parallaxY=0.1})
end

function onLoop()
	bg0.y = 80 + 4*math.sin (os.clock())
	bg0.x = 0 + 8*math.cos (os.clock())
end
Any way I could optimize?

Re: Does the parallax library cause any sort of slowdown for others?

Posted: Thu Sep 01, 2016 2:03 pm
by Emral
From my experience, SMBX on Wine is very unstable and slow.

Re: Does the parallax library cause any sort of slowdown for others?

Posted: Thu Sep 01, 2016 4:34 pm
by HunnyBon
I would use a recent version of Wine with CSMT staging, but recent Wine versions seems to utterly break texture loading, from my experience, anyways.