Align menu animation to JPCSP (linear tween); capture crashes to log
JPCSP's AbstractAnimAction interpolates linearly and ignores accelMode, so match that instead of adding easing. Log any uncaught exception from all threads (video/audio/animator/timer/FX) to /tmp/umd-crash.log to diagnose the Scenes/Languages crash.
This commit is contained in:
@@ -49,10 +49,7 @@ public final class Tween {
|
||||
}
|
||||
|
||||
private static float ease(float p, int accelMode) {
|
||||
return switch (accelMode) {
|
||||
case EASE_IN -> p * p;
|
||||
case EASE_OUT -> 1f - (1f - p) * (1f - p);
|
||||
default -> p;
|
||||
};
|
||||
// JPCSP interpolates linearly and ignores accelMode (see AbstractAnimAction).
|
||||
return p;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user