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

What is commodetto/static? #1396

Closed
stc1988 opened this issue Aug 31, 2024 · 5 comments
Closed

What is commodetto/static? #1396

stc1988 opened this issue Aug 31, 2024 · 5 comments

Comments

@stc1988
Copy link
Contributor

stc1988 commented Aug 31, 2024

I tried running examples/commodetto/static, but I couldn’t find any documentation on it, so I’m not sure what functionality it provides.

The example description says “efficiently render static,” but in what kind of cases can this functionality be used?

@phoddie
Copy link
Collaborator

phoddie commented Sep 1, 2024

The functionality it provides is rendering static efficiently. ;)

It has a few uses:

  • Show static when waiting for video to be available
  • Demonstrate how to implement and integrate a custom renderer extension for Poco
  • Confirm that irregular shaped objects, such as animated GIFs, are not drawing the background pixels

Here's a video of that last one:

mario.static.mov

It is pretty efficient. On an ESP32-S3, it can fill the screen with static at about 96 FPS.

Note: The ESP-IDF random number generator (esp_random) is too slow for efficient static (it is designed to be a cryptographically secure RNG). pocostatic.c should use rand() on ESP32 instead. I'll update that in the sources.

@stc1988
Copy link
Contributor Author

stc1988 commented Sep 1, 2024

Thank you for the explanation. I still don’t fully understand it, but the example just looks like a sandstorm, so it’s hard to imagine the functionality.
It would be easier to understand if there were an implementation example like a video. Of course, it doesn’t have to be Mario ;)

@meganetaaan
Copy link
Contributor

I didn't understand what 'static' meant until I saw this thread. In Japan, we call it 'テレビの砂嵐' (TV's sandstorms), but now I get it. Thank you for explaining!

@stc1988
Copy link
Contributor Author

stc1988 commented Sep 1, 2024

@phoddie
I understood the meaning of “static” and your explanation. Therefore, I don’t think any revisions to the examples are necessary.​

@meganetaaan
Thank you for following up.

@stc1988 stc1988 closed this as completed Sep 1, 2024
@phoddie
Copy link
Collaborator

phoddie commented Sep 2, 2024

Thanks for your feedback. A simple solution is to link to Wikipedia and this thread. I made the following update to the documentation:

The static example demonstrates how to use Poco to efficiently render video static. More information here.

mkellner pushed a commit that referenced this issue Sep 13, 2024
cmidgley pushed a commit to Intellisplash/moddable that referenced this issue Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants