From 6883e75874d94beaff2d9f89e9bee1c0b2d33743 Mon Sep 17 00:00:00 2001 From: austin Date: Fri, 30 May 2025 17:33:58 -0400 Subject: [PATCH] macro temporal data work --- docs/src/progress/renderertodo.md | 1 + .../electrosphere/data/macro/temporal/MacroTemporalData.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/src/progress/renderertodo.md b/docs/src/progress/renderertodo.md index 54ef542f..4498ed93 100644 --- a/docs/src/progress/renderertodo.md +++ b/docs/src/progress/renderertodo.md @@ -2083,6 +2083,7 @@ Don't allocate contact joints for geom-geom Remove potential collision engine footgun Synchronized time-of-day between server and client Skybox reflects time of day +Standardize data sourcing in MacroTemporalData diff --git a/src/main/java/electrosphere/data/macro/temporal/MacroTemporalData.java b/src/main/java/electrosphere/data/macro/temporal/MacroTemporalData.java index 93050319..6ec82f23 100644 --- a/src/main/java/electrosphere/data/macro/temporal/MacroTemporalData.java +++ b/src/main/java/electrosphere/data/macro/temporal/MacroTemporalData.java @@ -1,5 +1,7 @@ package electrosphere.data.macro.temporal; +import electrosphere.engine.Main; + /** * Temporal data associated with the macro data (ie calendar date, world age, etc) */ @@ -8,7 +10,7 @@ public class MacroTemporalData { /** * Amount of time per day */ - public static final long TIME_PER_DAY = 60 * 60 * 1; + public static final long TIME_PER_DAY = (long)Main.targetFrameRate * 60 * 30; /** * The noon remainder amount