I have a super simple script that slowly rotates an object. It’s this single line of code in update():
this.entity.rotate(dt * 5, dt * 6, dt * 7);
The rotation “jitters” occasionally, every 20s or so. But if I change rotate() to rotateLocal() the problem goes away. The issue appears at the same rotation every time so it’s obviously tied to a certain combination of angles.
playcanvas.com/editor/scene/1258505
Here’s my test project, it’s completely empty except for two rotating cubes. Hit play and wait 20 seconds. What’s going on?
I wish I could help more, but with code that simple and a seemingly capable device, I’m really not sure. I tested it on a laptop I have handy with the following specs
OS: Windows 10 Pro
CPU: Intel i7-8565U
GPU: Intel UHD Graphics 620
RAM: 8GB
VRAM: 0GB
Resolution at Fullscreen: 1920x1200
But was still unable to reproduce. Are your browsers up to date, or do you have any extensions that might somehow interfere with that function for some reason?
So with the screen set to 60fps, rotate() is showing the same issues, but on the other hand the profiler is still showing 120fps.
However, if I put the computer in battery save mode and force it to run slower, the profiler dives down to 60fps and the problem goes away, regardless of 60/120 fps screen setting.