This is the environment of my PC where this problem is occurring.
MacBook Air CPU: Intel OS: MacOSX Sequoia 15.7.4 Pico-8: v0.2.7 [Mac Client] |
The sensitivity deteriorates while the mouse is locked. (At this time, the load on the PC itself seems to be high.)
This problem does not occur in the browser; so far, it can only be reproduced on the client.
stat(9) is the Application's FPS. You can see a noticeable decrease in this.
stat(7) is the _draw() FPS. appears normal.
stat(1) is the total CPU usage. appears normal.
stat(2) is the Application's CPU usage. appears normal.
try this
function _init()
x,y=64,64
poke(0x5f2d,0x5)
end
function _update60()
x+=stat(38)/6
y+=stat(39)/6
end
function _draw()
cls()
?'[mlock]',0,112,9
?"◆",x,y
?'stat(1):'..stat(1),0,120,6
end |
stat(1) = cpu usage. 1% to 2%
@ChazBCook
Indeed, stat(1) is 0.02 (2%).
I copied your code and am using _init(), _update60(), and _draw(), but the sensitivity during pointer lock is still poor, just like before.
I’m running this on a Raspberry Pi, and with your current code stat(9) reports around 333, while stat(7) remains steady at 60.
Since stat(9) reflects the PICO-8 application’s internal frame rate (i.e., how often it updates per second, independent of the game’s update loop), this discrepancy might be platform-specific—possibly a macOS-related difference.
@ChazBCook
Yes, I think so too.
I didn't encounter this problem when I checked on my Windows PC.
I noticed the issue when I checked on my Mac on a whim.
[Please log in to post a comment]




