Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPURenderer: Tight morph target packing #27984

Conversation

RenaudRohlinger
Copy link
Collaborator

@RenaudRohlinger RenaudRohlinger commented Mar 24, 2024

Related issue: #27768

Description
Adapted the tight morph target packing PR to the WebGPURenderer fo testing purpose.

Benchmark on webgpu_instancing_morph using stats-gl on Mac Book Pro M1 Max:

stats = new Stats( {
	logsPerSecond: 0.25,
	samplesLog: 1000,
	precision: 3
} );

WebGL:
Before: 4.2ms GPU average
After: 4.4ms GPU average

WebGPU:
Before: 4.1ms GPU average
After: 4.5ms GPU average

Tight pack through Red Channel seems inefficient and GPUs seems to always prefer using RGBA?

This contribution is funded by Utsubo

import { loop } from '../utils/LoopNode.js';
import { all } from '../Nodes.js';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import all.
@RenaudRohlinger
Copy link
Collaborator Author

RenaudRohlinger commented Mar 24, 2024

Will close it for now as it feels like a regression. I will reopen it if proven otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant