[DiscordArchive] isn't normals just a saved variable of the face angle/direction ?
[DiscordArchive] isn't normals just a saved variable of the face angle/direction ?
Archived author: Deamon • Posted: 2024-01-29T00:20:49.710000+00:00
Original source
np. sorry for being pedantic
Archived author: Bench • Posted: 2024-01-29T00:22:01.137000+00:00
Original source
Everyone is pedantic, Titi should be used to it
![[Image: image.png?ex=690c9698&is=690b4518&hm=498...0fbb45743&]](https://cdn.discordapp.com/attachments/408013572430626817/1201325271266107412/image.png?ex=690c9698&is=690b4518&hm=498c5771c103979b97cedc9217678ffe5a5a72d9a4d917c662d39900fbb45743&)
Archived author: Titi • Posted: 2024-01-29T00:37:44.283000+00:00
Original source
performance aint much better when there's a ton of them, for this could definitely at least use instancing instead of drawing them 1 by 1
![[Image: image.png?ex=690c9698&is=690b4518&hm=498...0fbb45743&]](https://cdn.discordapp.com/attachments/408013572430626817/1201325271266107412/image.png?ex=690c9698&is=690b4518&hm=498c5771c103979b97cedc9217678ffe5a5a72d9a4d917c662d39900fbb45743&)
Archived author: Lyswh • Posted: 2024-01-29T00:38:23.159000+00:00
Original source
Ah... yeah, that was really shitty to performance XD
Archived author: Deamon • Posted: 2024-01-29T00:44:57.518000+00:00
Original source
From what I know up to this moment, the biggest performance drop is not drawcalls itself, but material switches
Archived author: Deamon • Posted: 2024-01-29T00:46:18.120000+00:00
Original source
Material = Uniforms + textures + states (backface, blending, depth write, depth culling)
Archived author: Deamon • Posted: 2024-01-29T00:47:43.438000+00:00
Original source
Ah, right. VBO/IBO/VAO are also can be considered as states here
![[Image: image.png?ex=690c98fb&is=690b477b&hm=78a...043e502c4&]](https://cdn.discordapp.com/attachments/408013572430626817/1201327836053647400/image.png?ex=690c98fb&is=690b477b&hm=78a6fa3bc0331b69fd17598fd1c48d420b35c153e9c47ac83dcdc8b043e502c4&)
Archived author: Titi • Posted: 2024-01-29T00:47:55.754000+00:00
Original source
it calls this everytime.
buffers are not set up every time but it's still pretty bad.
![[Image: image.png?ex=690c98fb&is=690b477b&hm=78a...043e502c4&]](https://cdn.discordapp.com/attachments/408013572430626817/1201327836053647400/image.png?ex=690c98fb&is=690b477b&hm=78a6fa3bc0331b69fd17598fd1c48d420b35c153e9c47ac83dcdc8b043e502c4&)
Archived author: Deamon • Posted: 2024-01-29T00:48:36.838000+00:00
Original source
ya. this wont be performant
Archived author: Titi • Posted: 2024-01-29T00:49:00.214000+00:00
Original source
and since this is for an heightfield could optimize with a shader to calculate x y and not send it ofc