I Reimplemented Frustum Culling in F# and its Faster then its C# Counterpart
I basically ported my frustum culling from C# to F#. The port is pretty much line for line, imperative style.
I thought the two would the on paar, but the F# one seems to be outperforming the C# version by 0.005 seconds.
In a realtime 3D application thats 3 frames saved.
Any ideas why this might be the case?
C# - https://github.com/geoeo/henzai/blob/master/Henzai.Core/Acceleration/MeshCuller.cs
F# - https://github.com/geoeo/henzai/blob/master/HenzaiFunc.Core/Acceleration/Culler.fs
Calling Code - https://github.com/geoeo/henzai/blob/master/Henzai/SceneContainer.cs#L41
0 comments:
Post a Comment