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

WebAudio - Allow 16 buffers in memory when using 1 section per round #1008

Open
Evert-R opened this issue May 8, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Evert-R
Copy link
Contributor

Evert-R commented May 8, 2024

Is your feature request related to a problem? Please describe.
When using 1 section per round, allow 16 buffers in memory before clearing the buffers.
Now this is done on every round, so if certain sections are used more than once, they are reloaded for every round that they are used, which offcourse is bad for performance.

Describe the solution you'd like

  • Set a maximum number of buffers we allow to be loaded before the buffers are cleared. I would suggest setting this to 16, as this number of simultaneous buffers in memory has already been tested in the matching pairs game.
    The webAudio.clearBuffers() will still be called before preloading the first section in a round, but will only clear the buffers if there are already 16 buffers loaded in memory.
  • Before preloading a section, check if the buffer is already loaded, and skip the preload if this is the case. This will improve both the matching pairs, as well as the categorization exp.

Describe alternatives you've considered

Additional context
Related issues: #1006 #1003

@Evert-R Evert-R added the enhancement New feature or request label May 8, 2024
@Evert-R Evert-R added this to the Infrastructure milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant