Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 258 sprite apears on ESC #1992

Open
BuoYancYdabl opened this issue Jul 22, 2022 · 7 comments · May be fixed by #2629
Open

Bug: 258 sprite apears on ESC #1992

BuoYancYdabl opened this issue Jul 22, 2022 · 7 comments · May be fixed by #2629
Labels

Comments

@BuoYancYdabl
Copy link

BuoYancYdabl commented Jul 22, 2022

What is wrong
When tapping fast escape key the 258 sprite shows on the cursor for one frame!

How to recreate

  1. Fill 258 sprite with anything noticable;
  2. Start going back and forth to editor and console;
  3. You'll notice sprite appearing on one frame below cursor.

Additional information
GIF
Platform: Windows 7, PC
Version of TIC: v1.0 Pro winxp
Is fullscreen: yes

@BuoYancYdabl BuoYancYdabl changed the title Bug: 256 sprite apears on ESC Bug: 258 sprite apears on ESC Jul 22, 2022
@BuoYancYdabl
Copy link
Author

BuoYancYdabl commented Jul 22, 2022

Please confirm if this also happens to you. I need to know is this my PC, or the TIC-80. It might be visual artifact, because im specifically using wrong videodriver.

@pythonmcpi
Copy link

Can reproduce using the Windows (regular) build from Github Actions Build #954. I believe my video drivers are up to date.

@joshgoebel joshgoebel added the bug label Dec 4, 2022
@joshgoebel
Copy link
Collaborator

Perhaps another issue with the new cursor code? Tagging as bug.

@pyanmcbride
Copy link

Perhaps another issue with the new cursor code? Tagging as bug.

I have noticed it before the new cursors.

@BuoYancYdabl
Copy link
Author

Ok, so somehow that bug moved from 258 to 259. This happens on a quarter of a second if you interfere in to cursor memory. Have this bug in the other project now.

@BuoYancYdabl
Copy link
Author

Well I have found some more weird stuff. For example, this bug affects the moving between editors or console while sprite in 257, 258 and 259 are appearing when game is lanching/closing. It have nothing to do with manual cursor changing, because I disabled that in my game to test it.

@Miguel-hrvs
Copy link
Contributor

Miguel-hrvs commented Jul 11, 2024

If you set tic_point hot to something high, like tic_point hot = {100000}; the sprite doesn't show up anymore.
Could work like a workaround.
Is one of the three mouse sprites being stored in one of the tiles in the spritesheet?
If we use const tic_tile* tile = &studio->config->cart->bank0.sprites.data[sprite]; the 258 sprite is not being displayed, but the same cursor sprite gets duplicated with the same effect as the sprite before.
Also removing the hot stuff fixes it. In addition to it, this way the mouse stop flickering pressing esc.
Here's the file:
studio-c.zip

@Miguel-hrvs Miguel-hrvs linked a pull request Jul 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants