Clouds icon indicating copy to clipboard operation
Clouds copied to clipboard

Perfomance tips

Open lgarczyn opened this issue 5 years ago • 3 comments

Hey, been playing around with your shader, there are two major ways I've improved performances:

  • Stop setting every single parameter of the shader every single frame. I got double the framerate by fixing that.

  • Worley noise is basically a signed distance field. You can dramatically reduce artifacts and increase performances by changing the step size depending on density (negative and positive)

lgarczyn avatar Mar 29 '20 03:03 lgarczyn

sounds awesome ! Maybe you can fork the project and apply your changes ?

Finn1510 avatar Apr 27 '20 14:04 Finn1510

@lgarczyn I would love to see the code that you have written to fix this!

Ceebox avatar Jul 04 '20 08:07 Ceebox

@Ceebox it's in my fork, but I'll try to make a clean PR this Sunday

lgarczyn avatar Jul 04 '20 16:07 lgarczyn