- nnueComplexity = (104 * nnueComplexity + 131 * abs(nnue - psq)) / 256;
- if (complexity) // Return hybrid NNUE complexity to caller
+ nnueComplexity = ( 412 * nnueComplexity
+ + 428 * abs(psq - nnue)
+ + (optimism > 0 ? int(optimism) * int(psq - nnue) : 0)
+ ) / 1026;
+
+ // Return hybrid NNUE complexity to caller
+ if (complexity)