David Amador on Nostr: the "render with top down camera" to a texture for creating a minimap is a good ...
the "render with top down camera" to a texture for creating a minimap is a good solution until you realize that doing that every frame to a big texture is a timeframe killer. It's a good solution only if updating it once in a while, ideally decouple movement from updating the WHOLE texture. Just squeezed nearly 2x framerate on a game by queuing minimap updates to fewer times.
Published at
2023-09-04 08:09:01Event JSON
{
"id": "0426e28c8502f651d6c77f9bb9cb972f846590ee62ff1288d0266bd99408b4e1",
"pubkey": "f822ae7b5d60ed7d9560dc9ee3b50a2b67fa795ca7ee99d6d7695c18b5a102e9",
"created_at": 1693814941,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/djlink/statuses/111005856015940210",
"activitypub"
]
],
"content": "the \"render with top down camera\" to a texture for creating a minimap is a good solution until you realize that doing that every frame to a big texture is a timeframe killer. It's a good solution only if updating it once in a while, ideally decouple movement from updating the WHOLE texture. Just squeezed nearly 2x framerate on a game by queuing minimap updates to fewer times.",
"sig": "316af94b20acd470defd078e4cfdb00f5787f89c760c8d28345aaef10da8a4231d17881a1d2cdba7db17469b365602fad2586b23018ccf8f0dcb73a6665b10d9"
}