From 9f7d2f0fd7999f38ccab30dd897c720ac3c1839d Mon Sep 17 00:00:00 2001 From: Zhen Li <45376537+li3zhen1@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:34:28 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d41ee2..464b39d 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Source code: [ForceDirectedGraph3D/ContentView.swift](https://github.com/li3zhen > [!IMPORTANT] > When working with 3D contents, you probably need `Float` types instead of `Double`. The example here manually cast `Double` to `Float`. -> The `float32` branch provides out-of-box support for `Float` through generics. However, the performance will be downgraded. I’ll try to fix that. +> The `float32` branch relaxes the generic constraint from `Scalar == Double` to `Scalar: ExpressibleByFloatLiteral`, which allows you to get out-of-box supports for other floating point types. However, the performance will be downgraded. I’m trying to find a workaround.