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

Migrate pipelines and profiling code to ST::string #1512

Merged
merged 4 commits into from
Mar 30, 2024

Conversation

dgelessus
Copy link
Contributor

Just some cleanup to replace more C-style string manipulation and fixed-size buffers. This should have no visible effect.

Almost all of these are "boring" changes. The only somewhat complex parts are the number formatting in plProfileBase and the graphics adapter/driver name checks in hsG3DDeviceSelector.

@Hoikas
Copy link
Member

Hoikas commented Nov 10, 2023

Due to the changes to pfDXPipeline, this will be deferred until after #1326 is merged.

@dgelessus dgelessus force-pushed the pipelines_and_profiler_st_string branch 2 times, most recently from 6a8a6ed to 5a3abde Compare November 29, 2023 17:43
@dgelessus dgelessus force-pushed the pipelines_and_profiler_st_string branch from 5a3abde to f34edf7 Compare January 18, 2024 00:29
Comment on lines -78 to -79
if (!groupName)
groupName = "General";
Copy link
Member

Choose a reason for hiding this comment

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

What happens if an empty groupName is passed in now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing, like for any other group that doesn't exist.

It looks to me like this was a special case for the Stats.Show console command to default to General if you don't pass an argument. I changed the command implementation to handle that case properly, so this workaround shouldn't be needed anymore.

Sources/Plasma/FeatureLib/pfDXPipeline/plDXEnumerate.h Outdated Show resolved Hide resolved
Sources/Plasma/NucleusLib/inc/plProfile.h Outdated Show resolved Hide resolved
Sources/Plasma/NucleusLib/inc/plProfile.h Outdated Show resolved Hide resolved
@dgelessus dgelessus force-pushed the pipelines_and_profiler_st_string branch from f34edf7 to 9324f4b Compare February 22, 2024 00:31
@dgelessus dgelessus force-pushed the pipelines_and_profiler_st_string branch from 9324f4b to 257571f Compare March 29, 2024 01:12
@Hoikas
Copy link
Member

Hoikas commented Mar 29, 2024

@dpogue, @colincornaby Have y'all had a chance to look at this? It has a lot of pipeline adjacent type stuff, so I'd like to get your input.

@dgelessus dgelessus force-pushed the pipelines_and_profiler_st_string branch from 257571f to 924070e Compare March 29, 2024 23:07
@dgelessus
Copy link
Contributor Author

(rebased again to integrate #1578 and get off of the spicy version of liblzma)

@colincornaby
Copy link
Contributor

I'll take a look in the next few hours.

Copy link
Contributor

@colincornaby colincornaby left a comment

Choose a reason for hiding this comment

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

No questions right now. The Metal changes are (extremely) limited and I looked through the Direct3D changes and didn't see any concerns.

@Hoikas Hoikas merged commit 629152d into H-uru:master Mar 30, 2024
17 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.

4 participants