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

feat: add perfevent and marker flags #240

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

FlayaN
Copy link
Collaborator

@FlayaN FlayaN commented Apr 1, 2024

Adds event around feature drawing (and explicitly added support for SSS)

Only adds the marker in development mode. Due to getting define will take a bit.

Also added marker for showing the DEFINES under the first event level

Examples in NSight.
image
Screenshot 2024-04-01 193050

@FlayaN FlayaN force-pushed the add-perf-event-and-marker branch from 84a1990 to ec8d7c7 Compare April 1, 2024 18:50
if (vertexShader && pixelShader) {
for (auto* feature : Feature::GetFeatureList()) {
if (feature->loaded) {
auto hasShaderDefine = feature->HasShaderDefine(currentShader->shaderType.get());
if (hasShaderDefine)
BeginPerfEvent(feature->GetShortName());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment that we'll want to do this for deferred too when merged.

@alandtse alandtse changed the title feat: add perfevent and marker in development feat: add perfevent and marker flags Apr 2, 2024
@alandtse alandtse merged commit de7ce68 into doodlum:dev Apr 2, 2024
5 checks passed
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.

2 participants