bevyengine / bevyengine/bevy

Position-only vertex buffer for shadow map / depth prepass

Open
#16,156 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Feature C-Performance S-Ready-For-Implementation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## What problem does this solve or what need does it fill?

Non-position vertex attributes are not necessary for depth-only views like shadow map views or the depth prepass.

Separating vertex buffers into one for positions only, and one for everything else, _may_ improve cache performance for depth-only view rendering.

We'll have to see if it's worth it.

## What solution would you like?

Have one vertex buffer for positions, and a second vertex buffer for everything else.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points, so first locate the vertex-buffer and shadow-map/depth-prepass rendering paths in the Bevy repository. Determine whether position-only buffers improve depth-only rendering, benchmark the relevant views, and consider the work done when the result is supported by measurements and the two-buffer arrangement is implemented if worthwhile.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.