- // Return hybrid NNUE complexity to caller
- if (complexity)
- *complexity = nnueComplexity;
-
- optimism = optimism * (272 + nnueComplexity) / 256;
- v = (nnue * scale + optimism * (scale - 748)) / 1024;
+ optimism += optimism * nnueComplexity / 256;
+ v = (nnue * (945 + npm) + optimism * (174 + npm)) / 1024;