py5coding on Nostr: New #py5 feature: an `update()` function that gets called before each call to ...
New #py5 feature: an `update()` function that gets called before each call to `draw()`, and can execute during the time between one call to `draw()` and the next that the #Python interpreter would otherwise be idle. For many Sketches, this is an easy way to provide a small performance improvement.
Please read about it and share your thoughts!
https://github.com/py5coding/py5generator/discussions/408Published at
2024-01-27 06:18:33Event JSON
{
"id": "d7325971199922e8b616d4abe92b505c96aca0ee92ed4fa910fbed9ced89c3bf",
"pubkey": "84ee38e8a3fd005f79ad54ce399885a0a0493f3345fcfcdd92353994b25bc89b",
"created_at": 1706336313,
"kind": 1,
"tags": [
[
"t",
"py5"
],
[
"t",
"python"
],
[
"proxy",
"https://fosstodon.org/users/py5coding/statuses/111826456655759304",
"activitypub"
]
],
"content": "New #py5 feature: an `update()` function that gets called before each call to `draw()`, and can execute during the time between one call to `draw()` and the next that the #Python interpreter would otherwise be idle. For many Sketches, this is an easy way to provide a small performance improvement.\n\nPlease read about it and share your thoughts!\n\nhttps://github.com/py5coding/py5generator/discussions/408",
"sig": "9a0f81b52dda425a3db9aadffd6d160d11d269bec82559b47244de0b794fc7469adc15d9af31840243b02a3d0e9846b7ae142443d9075467b9c563293f97b505"
}