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

Add tracy.LuaTracyPlot and tracy.LuaTracyPlotConfig #1651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sprunk
Copy link
Collaborator

@sprunk sprunk commented Aug 18, 2024

#1215 but in the tracy. namespace, 100% free when not using tracy builds, and no code from rts/lib/tracy/* was touched so there won't be any issues with updating the lib in the future.

rts/Lua/LuaTracyExtra.h Outdated Show resolved Hide resolved
* @string[opt="Number"] plotFormatType "Number"|"Percentage"|"Memory"
* @bool[opt=true] stepwise stepwise chart
* @bool[opt=false] fill whether to fill color
* @number[opt=white] color unit32 number as BGR color
Copy link
Collaborator Author

@sprunk sprunk Aug 23, 2024

Choose a reason for hiding this comment

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

In theory "white" is not a valid Lua value, but then 0xFFFFFF isn't either, and all the real ways to actually produce that value from lua are imo too verbose to put here and don't even convey the format well.

Comment on lines +1836 to +1837
Wipe(18 + 7);
else if (!strncmp(script + 18, "(", 1))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The 18, 7 and 1 are magic but it should be obvious from context what they are, and named constants would be pretty unwieldy.

@sprunk sprunk requested a review from p2004a August 23, 2024 02:31
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.

3 participants