-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global sort + SIMD for Gaussian rendering (#252)
* Start new splatting impl * Working global sorting + SIMD * Cleanup * Cleanup * Guarantee inline for dot product helper * Fix minor loading issues * (unrelated) playback styling * Add browser version warning * Respect node visibility, run prettier * Minor optimizations * Significant optimization * Cleanup * typescript fix * Fix edge cases * More cleanup + fixes * Optimization * Reduce maximum number of Gaussian groups * Bump max to 64 * Drop limit back down to 32 * Cleanup, fix hook-related edge cases * Fix tsc * Typos * Move group transforms back into texture, cleanup * Naming consistency * More optimizations
- Loading branch information
Showing
17 changed files
with
668 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { notifications } from "@mantine/notifications"; | ||
import { detect } from "detect-browser"; | ||
import { useEffect } from "react"; | ||
|
||
export function BrowserWarning() { | ||
useEffect(() => { | ||
const browser = detect(); | ||
|
||
// Browser version are based loosely on support for SIMD, OffscreenCanvas. | ||
// | ||
// https://caniuse.com/?search=simd | ||
// https://caniuse.com/?search=OffscreenCanvas | ||
if (browser === null || browser.version === null) { | ||
console.log("Failed to detect browser"); | ||
notifications.show({ | ||
title: "Could not detect browser version", | ||
message: | ||
"Your browser version could not be detected. It may not be supported.", | ||
autoClose: false, | ||
color: "red", | ||
}); | ||
} else { | ||
const version = parseFloat(browser.version); | ||
console.log(`Detected ${browser.name} version ${version}`); | ||
if ( | ||
(browser.name === "chrome" && version < 91) || | ||
(browser.name === "edge" && version < 91) || | ||
(browser.name === "firefox" && version < 89) || | ||
(browser.name === "opera" && version < 77) || | ||
(browser.name === "safari" && version < 16.4) | ||
) | ||
notifications.show({ | ||
title: "Unsuppported browser", | ||
message: `Your browser (${ | ||
browser.name.slice(0, 1).toUpperCase() + browser.name.slice(1) | ||
}/${ | ||
browser.version | ||
}) is outdated, which may cause problems. Consider updating.`, | ||
autoClose: false, | ||
color: "red", | ||
}); | ||
} | ||
}); | ||
return null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.