DDA
scenario
Stop Recomputing the Same Line
You already have a first-octant line-drawing rule. For each integer x, you can evaluate the line equation, find the real-valued height where the line crosses that column, round that height, and select one pixel.
Now imagine drawing a long line with thousands of columns. The output is correct, but look at what the calculation would do. Every time x increases by exactly 1, it calculates the line height again from the full expression m*x + c. The slope m has not changed. The intercept c has not changed. Even the change in x is perfectly regular.
The question is no longer which pixel represents the line. You already solved that. The question is whether you need to solve the same equation from scratch for every column when neighbouring columns are mathematically related.
If you already know the exact line height at one column and then move exactly one column to the right, what information could let you obtain the next height without evaluating m*x + c again?