File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -5543,11 +5543,17 @@ var mGBA = (function () {
5543
5543
} ,
5544
5544
requestAnimationFrame : function ( func ) {
5545
5545
if ( typeof requestAnimationFrame === "function" ) {
5546
- requestAnimationFrame ( func ) ;
5547
- return ;
5546
+ var now = Date . now ( ) ;
5547
+ if ( Browser . nextRAF === 0 ) {
5548
+ Browser . nextRAF = now + 1e3 / 60 ;
5549
+ } else {
5550
+ while ( now + 2 >= Browser . nextRAF ) {
5551
+ Browser . nextRAF += 1e3 / 60 ;
5552
+ }
5553
+ }
5554
+ var delay = Math . max ( Browser . nextRAF - now , 0 ) ;
5555
+ setTimeout ( func , delay ) ;
5548
5556
}
5549
- var RAF = Browser . fakeRequestAnimationFrame ;
5550
- RAF ( func ) ;
5551
5557
} ,
5552
5558
safeCallback : function ( func ) {
5553
5559
return function ( ) {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ let stats_data = useFetch(stats_url).data;
36
36
</div >
37
37
</div >
38
38
<div class =" col-12 lg:col-3 xl:col-3" ></div >
39
-
39
+
40
40
<div class =" col-12 lg:col-6 xl:col-4" >
41
41
<div class =" card mb-0" >
42
42
<div class =" flex justify-content-between mb-6" >
You can’t perform that action at this time.
0 commit comments