NickQx Posted January 5, 2019 Share Posted January 5, 2019 Hello everyone, I'm trying to implement simple game. I use canvas 2d, but I've met performance problems in chrome, you can see it on the video between 2-5s Simple example of code: https://jsbin.com/govuvenoyi/2/edit?js,output. Also I've tried leave empty requestAnimationFrame fn and looks like it has memory leaks and I've found this bug https://bugs.chromium.org/p/chromium/issues/detail?id=120186, but I saw a lot of great html5 games without bugs. What I can do with it? Thx for any help. canvas issues.mov Quote Link to comment Share on other sites More sharing options...
mattstyles Posted January 6, 2019 Share Posted January 6, 2019 That bug mentions its only a dev tools bug. Does the issue you're experiencing disappear when you turn off devtools? Quote Link to comment Share on other sites More sharing options...
NickQx Posted January 6, 2019 Author Share Posted January 6, 2019 @mattstyles thx for reply. I've recorded this video without devtools, also you can open jsbin link https://jsbin.com/govuvenoyi/2/edit?js,output and you will see same issue, because I've checked it on macos, windows, and linux. In ff I don't have this problem. Quote Link to comment Share on other sites More sharing options...
NickQx Posted January 14, 2019 Author Share Posted January 14, 2019 No one hasn't this issue? Quote Link to comment Share on other sites More sharing options...
themoonrat Posted January 14, 2019 Share Posted January 14, 2019 You just always get a sawtooth memory visual using Dev tools. That's how Chrome had always been with rAF even with an empty function. I wouldn't worry about it. Quote Link to comment Share on other sites More sharing options...
NickQx Posted January 14, 2019 Author Share Posted January 14, 2019 @themoonrat It isn't about 'a sawtooth memory'. The problem that I have lags with simple animation. Have you seen the video? canvas issues.mov Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.