TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Saving and running in succession rapidly leaves the save banner visible during play

Open massung opened this issue 2 years ago • 5 comments

Just hit ctrl-s and then ctrl-r back-to-back quickly.

https://user-images.githubusercontent.com/746946/166694456-e4fd6a68-50f4-4ca3-9296-4f662310ce0b.mov

massung avatar May 04 '22 13:05 massung

FWIW im unable to reproduce this running https://github.com/nesbox/TIC-80/commit/2a662a0ad38514210c313b518f7691aab227c06c on Linux

AlecTroemel avatar Jan 27 '23 16:01 AlecTroemel

~I believe it happens for me with eb4e331455d8d3c0512f3d57a2d9daa61b96ff4b~

~Will try the latest.~

Ah no -- I misinterpreted. It doesn't happen for me.

I guess the video is showing an artifacted banner that remains on the screen. That doesn't happen for me.

sogaiu avatar Jan 28 '23 01:01 sogaiu

This happens to me with carts in which I don't use cls in TIC() like https://tic80.com/play?cart=3430. It does not happen otherwise, which makes sense.

Skeptim avatar Aug 24 '23 12:08 Skeptim

@TimotheeGreg thats a good catch! @massung its been a while since the original issue was opened, but do you think the original example cart could be missing a cls call?

AlecTroemel avatar Aug 24 '23 13:08 AlecTroemel

It was a while and I don't have it for reference any more (sorry).

But, I'm fairly confident that yes - it wasn't calling cls each frame. However, if that was the case then it was drawing the entire frame such that it shouldn't have been needed.

I've downloaded the 1.0 version and tried replacing cls in the startup script with rect over the entire screen and everything works as expected.

massung avatar Aug 24 '23 14:08 massung