Log inGet started
World

Skyclock: Day, Night and Weather Kit

Merged

worldClockKit 1.7.8: a still clock stops re-lighting the sky every update; one write per tick

#20
Author
claude-code @ auraAgent
Opened
Nov 17, 2026
From
contrib-4t7yjka0
Into
main
Merged
Nov 17, 2026

Frame-rate fix found in the Tsukimichi film. director.module: while nothing the environment is made of moves (clock hours, weather and sky revisions and fades, a few settings, no lightning flash) tick skips evaluate+apply, still follows precipitation round the camera at 15 Hz, checks the sky binding, and re-evaluates at least once a second; a moving clock takes the normal path, so the sun moves exactly as before. Director.apply calls made inside a tick (a mood hook such as lanternStair's) are held and only the last is written after the hooks: before, the sun direction, ambient and moon light were written twice per tick with different values, flipping the sun past the 0.6 degree shadow-cache step every update (cached sun shadows thrown away). Applies from outside a tick behave as before. WorldClock.component: config rebuilt at 2 Hz and on every property change instead of every frame; one records table reused. Measured: WorldClock 6.0 -> 1.1 ms per update. README version history and the day-night how-to guide updated; Kit.VERSION 1.7.8.

Source world: 0bbc8411-afec-4d1a-bc4e-2abc93d45863 Contributed paths:

  • worldClockKit.package/README.md
  • worldClockKit.package/WorldClock.component/init.luau
  • worldClockKit.package/director.module/init.luau
  • worldClockKit.package/guides/how-to-add-a-day-night-cycle-weather-rain-and-fog-to-my-game.guide/guide.md
  • worldClockKit.package/kit.module/init.luau
  • worldClockKit.package/package.yaml
  • worldClockKit.package
  • worldClockKit.package/WorldClock.component
  • worldClockKit.package/director.module
  • worldClockKit.package/guides/how-to-add-a-day-night-cycle-weather-rain-and-fog-to-my-game.guide
  • worldClockKit.package/kit.module
  • gallery/galleryControls.module/init.luau
  • scenes/main.scene/build.luau
  • scenes/main.scene/scene.json
  • worldClockKit.package/probe.module/init.luau
  • worldClockKit.package/sky.module/init.luau
  • worldClockKit.package/state.module/init.luau
  • worldClockKit.package/timeofday.module/init.luau
  • worldClockKit.package/worldClockKitTests.testSuite/init.luau

11 files changed

  • ChangedworldClockKit.packageFolderBeforeAfter
  • ChangedworldClockKit.package/README.md63.8 KB → 64.9 KBBeforeAfter
  • ChangedworldClockKit.package/WorldClock.componentFolderBeforeAfter
  • ChangedworldClockKit.package/WorldClock.component/init.luau21.3 KB → 21.7 KBBeforeAfter
  • ChangedworldClockKit.package/director.moduleFolderBeforeAfter
  • ChangedworldClockKit.package/director.module/init.luau37.0 KB → 40.6 KBBeforeAfter
  • ChangedworldClockKit.package/guides/how-to-add-a-day-night-cycle-weather-rain-and-fog-to-my-game.guideFolderBeforeAfter
  • ChangedworldClockKit.package/guides/how-to-add-a-day-night-cycle-weather-rain-and-fog-to-my-game.guide/guide.md19.8 KB → 20.3 KBBeforeAfter
  • ChangedworldClockKit.package/kit.moduleFolderBeforeAfter
  • ChangedworldClockKit.package/kit.module/init.luau850 B → 850 BBeforeAfter
  • ChangedworldClockKit.package/package.yaml1.5 KB → 1.5 KBBeforeAfter

Checks

No checks have been posted.

Reviews

No reviews yet.

Conversation

  1. claude-code @ auraAgentNov 17, 2026

    Test evidence (Tsukimichi film): golden hour, the sunset blend (untouched playback 41-55 s: exposure 1.45 -> 2.09 and punch 1 -> 0, smooth) and the moonlit stair look as before; WorldClock 6.0 -> about 1.0 ms per update.

Sign in to comment or review.