Why can a computer take minutes to run a couple lines of code, yet can run complex things like games so quickly?

746 views

Why can a computer take minutes to run a couple lines of code, yet can run complex things like games so quickly?

In: Technology

10 Answers

Anonymous 0 Comments

I read your comments and I think I see your point. One of the limiting factors with what you are talking about is having to finish the first loop before starting the second. In a video game, a bunch of things are happening simultaneously. Imagine instead that you had two lines that had to be loop 10000 times each, or one line looped 20000 times. The first one would be way faster.

You are viewing 1 out of 10 answers, click here to view all answers.