Danil on Nostr: npub146wgg…zwqc9 godot 3 and 4 compile shaders "only when they visible on screen" - ...
npub146wggdlr4tl48cr8cmg3z4cxptfkhcxhlcha4x8alxtnqr40g6ysrzwqc9 (npub146w…wqc9) godot 3 and 4 compile shaders "only when they visible on screen" - so to have "no lags" - you need just show your shaders once to camera.
Basically - make "loading screen placeholder" while you show few objects per frame to camera to compile their shaders - same with GPUParticles - spawn them once on camera.
GPUParticles - very important and work very well in Godot - removing them completely because you "do not want to have 1 sec loading screen time" - is bad idea I think.
Published at
2023-09-30 11:55:13Event JSON
{
"id": "6c15cdd68b2dd202e0b5821bc55e576912441a9bb8e9c288ffae138c33f37b61",
"pubkey": "f5d4f8ffb972e618f71a7c0fa56c7d9eaeaa195532ada4efe245ef1c2032829e",
"created_at": 1696074913,
"kind": 1,
"tags": [
[
"p",
"ae9c8437e3aaff53e067c6d11157060ad36be0d7fe2fda98fdf997300eaf4689",
"wss://relay.mostr.pub"
],
[
"p",
"dc678a2a28bc04aad2fde93491ec65e3d0281ff2c87c3eebe6a4f10c7c4d3e92",
"wss://relay.mostr.pub"
],
[
"e",
"55f41afe0344e8b0601a051a4612103f827b620c18be770181ffb046465b89d2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.gamedev.place/users/danil/statuses/111153965557859691",
"activitypub"
]
],
"content": "nostr:npub146wggdlr4tl48cr8cmg3z4cxptfkhcxhlcha4x8alxtnqr40g6ysrzwqc9 godot 3 and 4 compile shaders \"only when they visible on screen\" - so to have \"no lags\" - you need just show your shaders once to camera.\n\nBasically - make \"loading screen placeholder\" while you show few objects per frame to camera to compile their shaders - same with GPUParticles - spawn them once on camera.\n\nGPUParticles - very important and work very well in Godot - removing them completely because you \"do not want to have 1 sec loading screen time\" - is bad idea I think.",
"sig": "6a90f902b5661a5ec70869d4350543027ed96ea4eef2c3f3c01ad12d6cac684fb7fe36e1d7d6933a60060233cb3861c9f8d9b5eea27229062eb816171a84bf30"
}