01
Timestamp plus one formula: best for economies where production is a constant rate
Platform: Browser, Steam, Mobile · free
Cookie Clicker computes offline earnings in a single expression when the save loads. In its main.js, the amount is the capped time away times cookies per second times an offline percentage, and anything beyond the cap is paid at a tenth of that rate. Buffs are loaded after the calculation on purpose, with a comment saying they should not interfere with offline CpS.
This is the right default for any game whose income is rate times time. It is instant, exact, and needs only lastSaveTime in the save: secondsAway = (now - lastSaveTime) / 1000, then gain = rate * Math.min(secondsAway, cap) * offlineRate.
Watch out for: A formula is only exact if nothing changes during the absence. If buildings would have been auto-bought or unlocks reached, the player gets less than an open tab would have given, and they will notice.






