# How much slower is it to draw on “half pixels”?

I've noticed that games like Diep.io are using floating decimal points for thin stroke lines on the grid. I have even tried this myself, by adding 0.5 to all of the positions for the grid lines to make the lines more thin.

I heard it from a friend that drawing on half pixels causes the GPU to do more work to smooth it out, like anti-aliasing. I am really trying to make my game look nice, by making the most smoothest lines as I can. How much slower is it really, and should I use it in an online competitive 2D game using Canvas?

• Have you tried profiling your game with & without the 0.5 offset to measure whether there's a substantial performance difference in your use case? – DMGregory Feb 15 '19 at 3:22
• @DMGregory I would try, but I am not familiar with the profiling tree, so I don't know how to use it. – Jacob Gunther Feb 15 '19 at 5:57
• @JacobGunther I would really recommend you to familiarize yourself with the profiler. It's an invaluable tool if you want to troubleshoot performance problems in more complex games. – Philipp Feb 15 '19 at 9:31