patrick99e99 Posted March 7, 2020 Share Posted March 7, 2020 (edited) As I am animating various things being drawn to the canvas, I am also as a last step, drawing a large number of rows of broken up horizontal lines (these are static, that don't move or change in any way)... As I was testing my game, I noticed that Firefox in particular was super choppy and laggy. When I profiled, I saw the function call to the static lines was the thing taking up time. So I commented that out, and then Firefox ran fairly smoothly.... So now I am wondering, what alternatives do I have to how I am currently doing this? I was wondering if it would be a good idea to draw these the lines to a png buffer, and have pixi display that instead of manually drawing the lines on the canvas... Are there any good techniques for improving performance of drawing large batches of disconnected lines? Edited March 7, 2020 by patrick99e99 Quote Link to comment Share on other sites More sharing options...
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.