# What is the \*most efficient\* way to draw a single pixel to the screen?

**URL:** https://forum.makecode.com/t/what-is-the-most-efficient-way-to-draw-a-single-pixel-to-the-screen/35451
**Category:** Help
**Tags:** graphics-and-math
**Created:** [April 8, 2025, 6:23pm UTC](https://forum.makecode.com/t/what-is-the-most-efficient-way-to-draw-a-single-pixel-to-the-screen/35451 "2025-04-08T18:23:53Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![MrJones](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrjones/32/21218_2.png) [@MrJones](https://forum.makecode.com/u/MrJones)
#### Post date: [April 9, 2025, 6:40pm UTC](https://forum.makecode.com/t/what-is-the-most-efficient-way-to-draw-a-single-pixel-to-the-screen/35451/6 "2025-04-09T18:40:25Z")

</div>

Ooh the profiler sounds very intriguing. I saw some of the older threads but I think I missed this one - I’ll be sure to check it out!

Right now, drawing lines is just where I’m at in this tutorial, and I suspect it will be replaced with specialized functions, as you mention, as I progress. Though having the option to do wireframe very much appeals to me, and I’ve elected not to use the native triangle function because I want to support a range of dither patterns and I aim to make something more colorful.

The floating point math I was made aware of thanks to some of the other posts I’ve run across - you can see in my drawLineLow snippet I’ve used integer multiplication. I found @mmoskal’s [post](https://forum.makecode.com/t/makecode-kart/5787/58) on the Makecode Kart thread that details speed comparisons.

Thank you so much for your reply! I’ll be taking a look at some of your resources and continuing my own progress later today.

---

_[View the full topic](https://forum.makecode.com/t/what-is-the-most-efficient-way-to-draw-a-single-pixel-to-the-screen/35451)._
