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

All answers flash after each answer is displayed #15

Closed
doyeap opened this issue Jun 20, 2016 · 3 comments
Closed

All answers flash after each answer is displayed #15

doyeap opened this issue Jun 20, 2016 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@doyeap
Copy link

doyeap commented Jun 20, 2016

For cards with non-overlapping occlusions, the answers flash when showing the answer or rating the difficulty. In other words, I briefly see the picture layer without the shapes for a fraction of a second whenever I press the spacebar. This doesn't happen every time but a definite majority of the time.
Using Anki 2.0.36
Using Image Occlusion Enhanced V0.2.3
I am on OS X and I know you mentioned there may be issues but I am pretty new to both Anki and Image Occlusion and didn't know if there is an error I have made somewhere.
Please let me know if there is anything I can do or if I should try Image Occlusion 2 (not enhanced)

Thank you very much

@doyeap doyeap changed the title Answers flash All answers flash after each answer is displayed Jun 20, 2016
@glutanimate
Copy link
Owner

Yep, this is one of the most frequent issues with Image Occlusion on OS X. It's the same across all versions of the add-on. If you look at this archived version of the original add-on page you'll see that the first reports concerning this problem date back to 2014.

As far as I understand it it's a bug with how Anki's graphical toolkit (Qt) renders the cards on OS X. Well, that's my best guess at least. I don't have a Mac to test this out on and even if I had access to a machine I likely wouldn't be able to troubleshoot it because the problem lies deeper than the add-on itself.

Sadly I'm not aware of any workaround for this, so if anyone is reading this and knows how to solve this please feel free to contact me.

@glutanimate glutanimate added bug Something isn't working help wanted Extra attention is needed macOS labels Jun 20, 2016
@doyeap
Copy link
Author

doyeap commented Jun 20, 2016

Thank you

glutanimate added a commit that referenced this issue Mar 18, 2018
Fixes #45. Most likely also fixes #15.

Even with a liberal fadein timer set, the image flashing problem
would still persist on slower systems and/or systems that have
performance issues with the new web engine (macOS?).
Postponing image visibility until after the mask is loaded
seems like the only surefire way to prevent instances of the answers
flashing before the actual answer reveal.

We still use a small aFade timer to make transitions between question
and answer where the images have not been cached smoother.

Because this change comes with a lot of increased complexity to the
basic method of operation of the add-on, and because it has the potential
to completely disrupt card reviewing, it will require extensive
testing across all platforms (especially the mobile clients and
AnkiWeb).
@glutanimate
Copy link
Owner

Closing this with the proviso that we still need to perform cross-platform tests (cf. https://github.com/glutanimate/image-occlusion-enhanced/projects/1#card-8246696).

Noxgrim pushed a commit to Noxgrim/image-occlusion-enhanced that referenced this issue Dec 29, 2021
Fixes glutanimate#45. Most likely also fixes glutanimate#15.

Even with a liberal fadein timer set, the image flashing problem
would still persist on slower systems and/or systems that have
performance issues with the new web engine (macOS?).
Postponing image visibility until after the mask is loaded
seems like the only surefire way to prevent instances of the answers
flashing before the actual answer reveal.

We still use a small aFade timer to make transitions between question
and answer where the images have not been cached smoother.

Because this change comes with a lot of increased complexity to the
basic method of operation of the add-on, and because it has the potential
to completely disrupt card reviewing, it will require extensive
testing across all platforms (especially the mobile clients and
AnkiWeb).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants