Skip to content

Marking NobleSprite with animation dirty before drawing#65

Open
stiv-iv wants to merge 7 commits intoNobleRobot:mainfrom
stiv-iv:main
Open

Marking NobleSprite with animation dirty before drawing#65
stiv-iv wants to merge 7 commits intoNobleRobot:mainfrom
stiv-iv:main

Conversation

@stiv-iv
Copy link
Contributor

@stiv-iv stiv-iv commented Nov 1, 2023

Fixed NobleSprite animation drawing in cases, when Graphics.sprite.getAlwaysRedraw() == false

Fixed NobleSprite animation drawing in cases, when Graphics.sprite.getAlwaysRedraw() == false
Mark sprite dirty last time in pause() and stop() methods before blocking updates.
@Mark-LaCroix Mark-LaCroix added the more info needed Further information is requested label Jun 2, 2024
@netlify
Copy link

netlify bot commented Dec 22, 2025

Deploy Preview for cheery-choux-736619 ready!

Name Link
🔨 Latest commit 55cc344
🔍 Latest deploy log https://app.netlify.com/projects/cheery-choux-736619/deploys/6949d3581ed0120008b31a15
😎 Deploy Preview https://deploy-preview-65--cheery-choux-736619.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Igor Stepanov added 2 commits December 23, 2025 03:18
Update scene before drawing sprites
Fix NobleSprite: Dont delete coords for sprites before adding
assada added a commit to assada/NobleEngine that referenced this pull request Feb 24, 2026
assada added a commit to assada/NobleEngine that referenced this pull request Feb 24, 2026
PR NobleRobot#65 swapped the order so scene:update() runs before
Graphics.sprite.update(). This breaks scenes that draw UI elements
(Noble.Menu, Noble.Text, manual image:draw) in their update() method,
because sprite.update() redraws dirty regions on top, erasing the UI.

The markDirty() fixes from PR NobleRobot#65 in NobleSprite work correctly without
the order swap, since sprite:update() and sprite:draw() both run inside
Graphics.sprite.update().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

more info needed Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants