Closed lancety closed 3 years ago
seems I worked out enough info which answered my question, will close this
What were your findings?
My findings are the sentences with "bold" style
In summary
I am working on my first game project, looking for solution to improve the contour and elevation calculation on a huge game map, which calculates values of 5k+ sides triangles. Definitely gpu.js will be my first option, these learning is useful.
[updates 02 May]
Bellow code runs well on browser, the "tBuild" take much longer time; please ignore the kernel logic not matching passed in array dimension (if it does not affect kernel build time)
data 0 init gpu 263 init cpu 0 tFn 3 tBuild 156 run gpu.js array run 2 run 1 run 1 run gpu.js typedarray run 1 run 0 run 1 run cpu.js run 22 run 22 run 18 run js native run 30 run 35 run 23
`
var GPU = globalThis.GPU || require("gpu.js").GPU; var input = GPU.input || require("gpu.js").input;
function run() {
}
run(); `