Drew DeVault on Nostr: Willow I would first want to know if the 12% CPU has more to do with the frame ...
Willow (npub1p6t…fhmf) I would first want to know if the 12% CPU has more to do with the frame lifecycle or the ev timer. Profile it?
A more efficient approach would be to drive the square movement based on frame timestamps rather than at a fixed 10ms interval
Published at
2023-10-21 11:37:11Event JSON
{
"id": "8ba12217a8cf916729df286f8bd5110987d3ae4286cfb37648de4a7507940420",
"pubkey": "05bbadaea41d30c3cf3b7fb1027622eb00cca66635fc9047053df7f9a54cb0c7",
"created_at": 1697888231,
"kind": 1,
"tags": [
[
"p",
"0e96c87e8dd4555400276a435f539e851fe33860b4e820aa0d4670009653962c",
"wss://relay.mostr.pub"
],
[
"e",
"57826dbd3ca8ad7e423d3672c84ebedc0111589ff6654d87cece7f9570953c10",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/drewdevault/statuses/111272803127453815",
"activitypub"
]
],
"content": "nostr:npub1p6tvsl5d6324gqp8dfp475u7s507xwrqkn5zp2sdgecqp9jnjckqwafhmf I would first want to know if the 12% CPU has more to do with the frame lifecycle or the ev timer. Profile it?\n\nA more efficient approach would be to drive the square movement based on frame timestamps rather than at a fixed 10ms interval",
"sig": "ee6b227574614f7ef2f373d4c22429e55bb5f198bce247ff9bf1682bf4deb433827e74d6d371ad04a6f09d6f6957e46187b8f9336845ad91cde719120db8dd54"
}