[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

If games keep track of the time elapsed in a timer variable which

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 1

File: hqdefault.jpg (12KB, 480x360px) Image search: [Google]
hqdefault.jpg
12KB, 480x360px
If games keep track of the time elapsed in a timer variable which increments every time a time period passes (e.g. a millisecond) and if all variables have a limit to how large a number they can hold, does that mean that, theoretically, you can crash or glitch any game (or otherwise mess with its internal clock) by letting it run over long periods of time?
>>
They could recreate the timer whenever necessary cheat engine exists.
>>
fuck off >>>/v/
>>
>>58446703
What do you mean?
>>
>>58446692
No.
Over range and overflows that crash the game are the result of memory access ie you cause the level count number to increment too much and then tries to access the 20th level in a block of memory that only has 19 levels, meaning you tried to access some random memory like it was something else and memory doesn't like that.
Bad overflows are usually just ranging back to a negative number (look up signed vs unsigned binary) and the game not meant to utilize or perform operations on negative numbers in a context.
Timers are incredibly large numbers, so the chance of it overflowing is fuck all outside of sitting on an emulator at 2000% and even then you'd get marginally errors if the game kept track of long scale time.
stryder7x on YT is really good at explaining IRL coding in terms of games.
>>
>>58446692
you're talking about an integer overflow. Even if you counted up every tick like the TSC MSR in x86-64 CPUs do, that register doesn't overflow for 10 years. Even if there was an overflow you can usually just loop back to 0 without much checking of the program's internal state.
>>
No, any game worth a shit stops incrementing and lower quality games roll over.
Thread posts: 7
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.