Hi everybody!

I'm currently trying to make an isometric tile based game and I have some questions about some things I ran into.

To draw one screen, I have to calculate which tiles to draw (how much for y and how much for x). To do this I have (in my opinion) a heavy calculation, but it works. It's something like this, but with other vars:

a = ((b % c) + d) / e + (((b % c) + d) % e != 0) + 1;

all vars are integers.

as you see (b % c) + d is in there twice so I thought maybe I can simplify it. I thought about it, but can't figure it out.

But is it necessary to simplify such a calculation? Is it wurth it? Like I said this calculation is done each frame. Would it slow things down a lot?

(And BTW do you know how to simplify this calculation )

Joren