If a game has the same lines of code across all players, then why do some bugs only affect certain players?

1.42K viewsOtherTechnology

I was playing a game earlier when a friend was experiencing a bug. Wouldn’t it make sense for me to be experiencing the same bug since were playing the same game that’s coded with the same lines of code?

In: Technology

24 Answers

Anonymous 0 Comments

Since hardware is already mentioned here, the state of your memory also matters. A lot of bugs come from accidental overwriting of memory, or reading memory that hasn’t properly been initialized. These are often unpredictable. If uninitialised memory is read, then its contents will be whatever was last written to them by whatever program was using it. So a bug can be effected by software you were running before.

Memory stomps are different, but fall into the same category.

Another reason is that bugs sometimes only happen under a very specific sequence of events, that are a matter of timing.

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