martinambrus / TravianZ

Travian T3.6 Clone in PHP

Home Page:https://travian.martinambrus.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build time calculations jump around

martinambrus opened this issue · comments

for all time estimates when there will be enough resources to build an object, these estimates jump up and down on each page refresh (MariaDB, PHP8)

I'm thinking this could be because of the new automation approach - right now, it runs a single AJAX in the BG, so whatever calculations are made in that AJAX are not propagated on the current page... before, automation was being ran on each page load, so we didn't have this problem

perhaps the solution is to run automation on page load, if another automation is not taking place already?