6 Replies
What does a 'frame' mean in this context?
for example a drawing function or a function that gets called everyframe for input
I would consider looking into how Monogame does this (it also gives you an update/draw loop for free)
you're probably going to want to have a
while (true)
loop that checks the current time in each iteration and compares that against a saved value
if it's been more than 1/60th of a second (or whatever), then go into the actual logic you want to execute
the reason why i'm asking what a frame means is because if you just have a while(true)
loop by itself it's going to go as fast as your CPU can manage
which is probably not what you wantya
how would i implement that? cuz if u do a normal while loop it breaks
is there anyway i can set the value of the screen to an array of pixels?
insted of just individually drawing each pixel one by one