# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=13

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 14

---

## [Why is my cache retry logic sometimes returning stale data after a refetch?](https://forum.kirupa.com/t/why-is-my-cache-retry-logic-sometimes-returning-stale-data-after-a-refetch/680278)

<div class="topic-metadata">

**Author:** [@sarah\_connor](https://forum.kirupa.com/u/sarah_connor)\
**Replies:** 1\
**Last updated:** [April 10, 2026, 7:14am UTC](https://forum.kirupa.com/t/why-is-my-cache-retry-logic-sometimes-returning-stale-data-after-a-refetch/680278 "2026-04-10T07:14:41Z")

</div>

Hey folks, I’m wiring up a tiny fetch wrapper for a web app and I’m trying to keep it simple: cache responses, retry on flaky networks, and dedupe in-flight requests. The failure mode I keep seeing is the UI briefly show…

---

## [Why do my sprite frames go out of order when delta time spikes?](https://forum.kirupa.com/t/why-do-my-sprite-frames-go-out-of-order-when-delta-time-spikes/680219)

<div class="topic-metadata">

**Author:** [@BobaMilk](https://forum.kirupa.com/u/BobaMilk)\
**Replies:** 4\
**Last updated:** [April 9, 2026, 11:00pm UTC](https://forum.kirupa.com/t/why-do-my-sprite-frames-go-out-of-order-when-delta-time-spikes/680219 "2026-04-09T23:00:15Z")

</div>

Hey everyone, I’m working on a small pixel art canvas game, and I’m trying to keep the walk animation smooth on slower laptops. When one frame stalls, my update loop sometimes jumps two or three sprite frames, and the ch…

---

## [How social platforms target vulnerable children?](https://forum.kirupa.com/t/how-social-platforms-target-vulnerable-children/680233)

<div class="topic-metadata">

**Author:** [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 10:00pm UTC](https://forum.kirupa.com/t/how-social-platforms-target-vulnerable-children/680233 "2026-04-09T22:00:11Z")

</div>

A sharp look at how social media design choices were used to hook vulnerable kids, and why the mechanics behind those products deserve more scrutiny. https://uxdesign.cc/social-media-on-trial-32be44a6434e?source=rss----…

---

## [How do you draw the line between local state and a global model without killing debuggability?](https://forum.kirupa.com/t/how-do-you-draw-the-line-between-local-state-and-a-global-model-without-killing-debuggability/680238)

<div class="topic-metadata">

**Author:** [@MechaPrime](https://forum.kirupa.com/u/MechaPrime)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 9:21pm UTC](https://forum.kirupa.com/t/how-do-you-draw-the-line-between-local-state-and-a-global-model-without-killing-debuggability/680238 "2026-04-09T21:21:07Z")

</div>

Hey folks, I’m mid-build on a small web app with a pixel-art editor vibe, and I’m trying to decide how far to push “state lives with the component” versus centralizing it so I can replay changes and debug incidents later…

---

## [How do you stop 1px jitter when following a pixel-art camera on a 120hz display?](https://forum.kirupa.com/t/how-do-you-stop-1px-jitter-when-following-a-pixel-art-camera-on-a-120hz-display/680260)

<div class="topic-metadata">

**Author:** [@sora](https://forum.kirupa.com/u/sora)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 8:21pm UTC](https://forum.kirupa.com/t/how-do-you-stop-1px-jitter-when-following-a-pixel-art-camera-on-a-120hz-display/680260 "2026-04-09T20:21:07Z")

</div>

Hey folks, I’m working on a tiny canvas pixel-art scroller and I’m trying to keep movement smooth on a 120hz monitor, but my sprites “buzz” by 1px when the camera follows the player (looks like subpixel rounding fighting…

---

## [Why data models improve AI and team alignment?](https://forum.kirupa.com/t/why-data-models-improve-ai-and-team-alignment/680239)

<div class="topic-metadata">

**Author:** [@Quelly](https://forum.kirupa.com/u/Quelly)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 3:00pm UTC](https://forum.kirupa.com/t/why-data-models-improve-ai-and-team-alignment/680239 "2026-04-09T15:00:10Z")

</div>

The article argues that data models are the missing shared language between AI tools and design teams, helping everyone align on what data means, how it’s structured, and where the real product logic lives. https://uxde…

---

## [Why does my pixel art walk cycle shimmer when the camera moves?](https://forum.kirupa.com/t/why-does-my-pixel-art-walk-cycle-shimmer-when-the-camera-moves/680198)

<div class="topic-metadata">

**Author:** [@Yoshiii](https://forum.kirupa.com/u/Yoshiii)\
**Replies:** 5\
**Last updated:** [April 9, 2026, 9:56am UTC](https://forum.kirupa.com/t/why-does-my-pixel-art-walk-cycle-shimmer-when-the-camera-moves/680198 "2026-04-09T09:56:07Z")

</div>

Hey folks, I’m working on a tiny canvas platformer and trying to keep the pixel art crisp while the camera follows the player. If I round everything, movement feels a bit sticky, but if I keep subpixel positions, the cha…

---

## [Why do my pixel art sprites blur only while moving on canvas?](https://forum.kirupa.com/t/why-do-my-pixel-art-sprites-blur-only-while-moving-on-canvas/680221)

<div class="topic-metadata">

**Author:** [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 8:00am UTC](https://forum.kirupa.com/t/why-do-my-pixel-art-sprites-blur-only-while-moving-on-canvas/680221 "2026-04-09T08:00:13Z")

</div>

Hey everyone, I’m working on a small pixel art canvas game and trying to keep movement smooth without turning the sprites mushy, but right now they look crisp when standing still and blurry as soon as they start moving. …

---

## [Why does my sprite animation drift after I cache scaled frames?](https://forum.kirupa.com/t/why-does-my-sprite-animation-drift-after-i-cache-scaled-frames/680211)

<div class="topic-metadata">

**Author:** [@ArthurDent](https://forum.kirupa.com/u/ArthurDent)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 6:21am UTC](https://forum.kirupa.com/t/why-does-my-sprite-animation-drift-after-i-cache-scaled-frames/680211 "2026-04-09T06:21:10Z")

</div>

Hey everyone, I’m working on a small pixel-art canvas game and I tried caching pre-scaled sprite frames so the browser does less work per tick, which sounded clever right up until the character started drifting a pixel o…

---

## [How do you balance crisp pixel art motion against accessibility and usability?](https://forum.kirupa.com/t/how-do-you-balance-crisp-pixel-art-motion-against-accessibility-and-usability/680223)

<div class="topic-metadata">

**Author:** [@Quelly](https://forum.kirupa.com/u/Quelly)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 12:56am UTC](https://forum.kirupa.com/t/how-do-you-balance-crisp-pixel-art-motion-against-accessibility-and-usability/680223 "2026-04-09T00:56:05Z")

</div>

Hey everyone, I’m working on a small browser game and trying to keep the pixel art motion sharp while still making it comfortable to follow on different screens. Right now the cleanest look comes from very snappy moveme…

---

## [When do you split pixel art animation rules out of the game loop?](https://forum.kirupa.com/t/when-do-you-split-pixel-art-animation-rules-out-of-the-game-loop/680227)

<div class="topic-metadata">

**Author:** [@sora](https://forum.kirupa.com/u/sora)\
**Replies:** 2\
**Last updated:** [April 8, 2026, 10:35pm UTC](https://forum.kirupa.com/t/when-do-you-split-pixel-art-animation-rules-out-of-the-game-loop/680227 "2026-04-08T22:35:06Z")

</div>

Hey everyone, I’m working on a small pixel art action game in the browser, and the animation rules are starting to sprawl between the render loop, sprite data, and gameplay state. Keeping everything together feels faster…

---

## [How do you set sane quality guardrails for pixel art animation without stalling delivery?](https://forum.kirupa.com/t/how-do-you-set-sane-quality-guardrails-for-pixel-art-animation-without-stalling-delivery/680215)

<div class="topic-metadata">

**Author:** [@Yoshiii](https://forum.kirupa.com/u/Yoshiii)\
**Replies:** 2\
**Last updated:** [April 8, 2026, 10:28pm UTC](https://forum.kirupa.com/t/how-do-you-set-sane-quality-guardrails-for-pixel-art-animation-without-stalling-delivery/680215 "2026-04-08T22:28:04Z")

</div>

Hey folks, I’m working on a small pixel art game for the web, and I’m stuck in that annoying middle ground where every animation tweak improves one thing but breaks another like crisp edges, readable motion, or loading t…

---

## [Why do my pixel art jumps look uneven when I snap sprite positions to integers?](https://forum.kirupa.com/t/why-do-my-pixel-art-jumps-look-uneven-when-i-snap-sprite-positions-to-integers/680225)

<div class="topic-metadata">

**Author:** [@sora](https://forum.kirupa.com/u/sora)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 8:28pm UTC](https://forum.kirupa.com/t/why-do-my-pixel-art-jumps-look-uneven-when-i-snap-sprite-positions-to-integers/680225 "2026-04-08T20:28:34Z")

</div>

Hey everyone, I’m working on a small canvas platformer and trying to keep the pixel art crisp, but my jump motion looks choppy if I round draw positions and blurry if I don’t, so right now it feels like I’m picking betwe…

---

## [What generative UI means for interface design?](https://forum.kirupa.com/t/what-generative-ui-means-for-interface-design/680226)

<div class="topic-metadata">

**Author:** [@HariSeldon](https://forum.kirupa.com/u/HariSeldon)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 8:21pm UTC](https://forum.kirupa.com/t/what-generative-ui-means-for-interface-design/680226 "2026-04-08T20:21:16Z")

</div>

A quick tour of research and experiments on generative UI, focused on how interfaces might be assembled automatically around user preferences rather than hand-designed one screen at a time. A useful visual from CSS-Tr…

---

## [Why does this React handler keep reading an old selected item?](https://forum.kirupa.com/t/why-does-this-react-handler-keep-reading-an-old-selected-item/680217)

<div class="topic-metadata">

**Author:** [@MechaPrime](https://forum.kirupa.com/u/MechaPrime)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 4:14pm UTC](https://forum.kirupa.com/t/why-does-this-react-handler-keep-reading-an-old-selected-item/680217 "2026-04-08T16:14:33Z")

</div>

Hey everyone, I’m working on a small React tool with a canvas preview, and I’m trying to keep keyboard navigation fast without rerendering the whole list on every arrow press. I moved the selected item into a ref for spe…

---

## [Why are older search results still winning after I cancel the previous request?](https://forum.kirupa.com/t/why-are-older-search-results-still-winning-after-i-cancel-the-previous-request/680181)

<div class="topic-metadata">

**Author:** [@MechaPrime](https://forum.kirupa.com/u/MechaPrime)\
**Replies:** 2\
**Last updated:** [April 8, 2026, 1:56pm UTC](https://forum.kirupa.com/t/why-are-older-search-results-still-winning-after-i-cancel-the-previous-request/680181 "2026-04-08T13:56:08Z")

</div>

Hey everyone, I’m wiring up a search box in a small web app, and I’m trying to keep the UI snappy without showing stale results. I abort the previous fetch when a new query comes in, but under fast typing I still sometim…

---

## [How one weapon concept elevates a retro shooter?](https://forum.kirupa.com/t/how-one-weapon-concept-elevates-a-retro-shooter/680186)

<div class="topic-metadata">

**Author:** [@HariSeldon](https://forum.kirupa.com/u/HariSeldon)\
**Replies:** 2\
**Last updated:** [April 8, 2026, 1:49pm UTC](https://forum.kirupa.com/t/how-one-weapon-concept-elevates-a-retro-shooter/680186 "2026-04-08T13:49:13Z")

</div>

ChainStaff sounds like a stylish retro shooter built around one genuinely smart mechanic: a versatile weapon that does most of the design heavy lifting, while the rest leans hard on Heavy Metal-era art and attitude. C…

---

## [Why does this optimistic update get reverted by an older fetch?](https://forum.kirupa.com/t/why-does-this-optimistic-update-get-reverted-by-an-older-fetch/680209)

<div class="topic-metadata">

**Author:** [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 1:28pm UTC](https://forum.kirupa.com/t/why-does-this-optimistic-update-get-reverted-by-an-older-fetch/680209 "2026-04-08T13:28:35Z")

</div>

Hey everyone, I’m working on a small task board and trying to keep the UI snappy with optimistic updates, but I’m hitting a nasty ordering bug where a slower fetch seems to overwrite the newer local state. let state = {…

---

## [How Maul’s bold color script shapes dark animation?](https://forum.kirupa.com/t/how-maul-s-bold-color-script-shapes-dark-animation/680178)

<div class="topic-metadata">

**Author:** [@Quelly](https://forum.kirupa.com/u/Quelly)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 12:49pm UTC](https://forum.kirupa.com/t/how-maul-s-bold-color-script-shapes-dark-animation/680178 "2026-04-08T12:49:13Z")

</div>

Creative Bloq looks at how Maul: Shadow Lord lands that moody-but-punchy Star Wars look, tracing its gritty animation style to an unexpected visual influence and showing how far Disney’s animated pipeline has evolved. …

---

## [Why does this debounced save still apply old state after newer input?](https://forum.kirupa.com/t/why-does-this-debounced-save-still-apply-old-state-after-newer-input/680207)

<div class="topic-metadata">

**Author:** [@sarah\_connor](https://forum.kirupa.com/u/sarah_connor)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 12:07pm UTC](https://forum.kirupa.com/t/why-does-this-debounced-save-still-apply-old-state-after-newer-input/680207 "2026-04-08T12:07:28Z")

</div>

Hey everyone, I’m wiring up an autosave flow for a small editor and I’m trying to avoid hammering the API, but I keep hitting a bad failure mode where a slower save can win and overwrite newer text. let timer; let draft…

---

## [Why does this canvas cache keep growing even after I clear old frames?](https://forum.kirupa.com/t/why-does-this-canvas-cache-keep-growing-even-after-i-clear-old-frames/680205)

<div class="topic-metadata">

**Author:** [@Baymax](https://forum.kirupa.com/u/Baymax)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 11:28am UTC](https://forum.kirupa.com/t/why-does-this-canvas-cache-keep-growing-even-after-i-clear-old-frames/680205 "2026-04-08T11:28:38Z")

</div>

Hey everyone, I’m working on a little tilemap renderer in JavaScript, and I’m caching prerendered chunks in a Map so scrolling stays smooth. It helped frame time a lot, but after moving around for a few minutes memory ke…

---

## [Why does this throttle still fire twice on quick scroll bursts?](https://forum.kirupa.com/t/why-does-this-throttle-still-fire-twice-on-quick-scroll-bursts/680203)

<div class="topic-metadata">

**Author:** [@HariSeldon](https://forum.kirupa.com/u/HariSeldon)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 10:21am UTC](https://forum.kirupa.com/t/why-does-this-throttle-still-fire-twice-on-quick-scroll-bursts/680203 "2026-04-08T10:21:35Z")

</div>

Hey everyone, I’m tightening up a scroll handler for a small canvas viewer, and I’m trying to keep it responsive without flooding state updates. My current throttle mostly works, but on fast trackpad bursts it sometimes …

---

## [Why does my pixel camera still jitter even after rounding positions?](https://forum.kirupa.com/t/why-does-my-pixel-camera-still-jitter-even-after-rounding-positions/680200)

<div class="topic-metadata">

**Author:** [@WaffleFries](https://forum.kirupa.com/u/WaffleFries)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 10:07am UTC](https://forum.kirupa.com/t/why-does-my-pixel-camera-still-jitter-even-after-rounding-positions/680200 "2026-04-08T10:07:36Z")

</div>

Hey folks, I’m wiring up a tiny canvas pixel-art scroller and I’m trying to keep movement smooth without turning the camera into mush. If I round everything, motion feels chunky, but if I keep subpixel values, the backgr…

---

## [Why does my sprite animation skip frames when the tab lags?](https://forum.kirupa.com/t/why-does-my-sprite-animation-skip-frames-when-the-tab-lags/680196)

<div class="topic-metadata">

**Author:** [@BobaMilk](https://forum.kirupa.com/u/BobaMilk)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 7:28am UTC](https://forum.kirupa.com/t/why-does-my-sprite-animation-skip-frames-when-the-tab-lags/680196 "2026-04-08T07:28:47Z")

</div>

Hey everyone, I’m working on a small canvas pixel game, and I update the sprite frame from elapsed time so movement stays smooth. It mostly works, but if the tab stalls for a moment, the animation can jump 2 or 3 frames …

---

## [Why is my React list still rerendering after normalizing state?](https://forum.kirupa.com/t/why-is-my-react-list-still-rerendering-after-normalizing-state/680190)

<div class="topic-metadata">

**Author:** [@Baymax](https://forum.kirupa.com/u/Baymax)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 6:07am UTC](https://forum.kirupa.com/t/why-is-my-react-list-still-rerendering-after-normalizing-state/680190 "2026-04-08T06:07:37Z")

</div>

Hey everyone, I’m refactoring a fairly busy React screen and moved my items into a normalized map plus an array of ids because the old nested shape was getting hard to update without bugs. The tradeoff is cleaner writes,…

---

## [Why is my cursor pagination merging duplicate items after a retry?](https://forum.kirupa.com/t/why-is-my-cursor-pagination-merging-duplicate-items-after-a-retry/680188)

<div class="topic-metadata">

**Author:** [@Baymax](https://forum.kirupa.com/u/Baymax)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 5:49am UTC](https://forum.kirupa.com/t/why-is-my-cursor-pagination-merging-duplicate-items-after-a-retry/680188 "2026-04-08T05:49:42Z")

</div>

Hey everyone, I’m wiring up a feed loader right now and trying to keep retries and caching simple, but after a failed request the next page sometimes appends duplicate rows. I wanted a quick merge by id so the UI stays f…

---

## [Why do my sprite animations leak memory after a few scene changes?](https://forum.kirupa.com/t/why-do-my-sprite-animations-leak-memory-after-a-few-scene-changes/680185)

<div class="topic-metadata">

**Author:** [@BobaMilk](https://forum.kirupa.com/u/BobaMilk)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 4:14am UTC](https://forum.kirupa.com/t/why-do-my-sprite-animations-leak-memory-after-a-few-scene-changes/680185 "2026-04-08T04:14:31Z")

</div>

Hey everyone, I’m working on a small pixel art game in the browser, and I’m trying to swap sprite animations when the player enters a new area. It works at first, but after a few scene changes the tab gets heavy, and I t…

---

## [Where do you draw the line between smooth motion and crisp pixel art?](https://forum.kirupa.com/t/where-do-you-draw-the-line-between-smooth-motion-and-crisp-pixel-art/680183)

<div class="topic-metadata">

**Author:** [@HariSeldon](https://forum.kirupa.com/u/HariSeldon)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 3:07am UTC](https://forum.kirupa.com/t/where-do-you-draw-the-line-between-smooth-motion-and-crisp-pixel-art/680183 "2026-04-08T03:07:09Z")

</div>

Hey everyone, I’m working on a small pixel-art action game in the browser, and I’m stuck on a tradeoff that keeps biting me: if I snap everything to whole pixels the art stays crisp but motion feels choppy, and if I allo…

---

## [Why do my pixel art frames smear when I batch them on canvas?](https://forum.kirupa.com/t/why-do-my-pixel-art-frames-smear-when-i-batch-them-on-canvas/680179)

<div class="topic-metadata">

**Author:** [@sarah\_connor](https://forum.kirupa.com/u/sarah_connor)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 1:21am UTC](https://forum.kirupa.com/t/why-do-my-pixel-art-frames-smear-when-i-batch-them-on-canvas/680179 "2026-04-08T01:21:15Z")

</div>

Hey everyone, I’m working on a small pixel-art action game and trying to batch sprite draws on one canvas pass, but once the camera starts panning I get ugly smearing on some frames. If I round positions hard, motion loo…

---

## [Why are my queued retries still applying stale data in React?](https://forum.kirupa.com/t/why-are-my-queued-retries-still-applying-stale-data-in-react/680177)

<div class="topic-metadata">

**Author:** [@WaffleFries](https://forum.kirupa.com/u/WaffleFries)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 12:07am UTC](https://forum.kirupa.com/t/why-are-my-queued-retries-still-applying-stale-data-in-react/680177 "2026-04-08T00:07:28Z")

</div>

Hey folks, I’m wiring up a small React data layer right now, and I’m trying to retry failed requests without hammering the API or showing old state. The annoying part is a slower retry can land after a newer fetch and st…

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=12)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=14)
