Skip to content

Add a feature to display the compilation progress as a percentage - #433

Merged
dimensionscape merged 7 commits into
openfl:mainfrom
Slushi-Github:add-progress-percent
Nov 12, 2026
Merged

dimensionscape merged 7 commits into
openfl:mainfrom
Slushi-Github:add-progress-percent

Conversation

@Slushi-Github

@Slushi-Github Slushi-Github commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Now we could define HXCPP_PROGRESS_PERCENT to change how the progress of a project's compilation is displayed.

Without HXCPP_PROGRESS_PERCENT (Default):

Compiling group: haxe (990 files)
g++ ...
 [  0/990] - src/openfl/display/Tileset.cpp  [haxe,release]

With HXCPP_PROGRESS_PERCENT:

Compiling group: haxe (1010 files)
g++ ...
 [0.0% ] - src/lime/_internal/format/BMP.cpp  [haxe,release]

It's just a matter of aesthetics; personally, I much prefer the percentage, heh.

Slushi-Github and others added 6 commits November 10, 2026 12:24
Now you can define `HXCPP_PROGRESS_PERCENT` for see the compilation progress as a percentage
The percentage is padded to the width of 100.0, as the count is padded to
the width of the total, so the file names after it stay in one column.
Progress.hx keeps the brace style of the rest of the build tool, and the
define has a line in Defines.md and in Changes.md.
Now, when the progress bar is in percentage format, it appears as [42.5% ] instead of [ 42.5%].
@dimensionscape

Copy link
Copy Markdown
Member

Thanks for the update, left-aligning it reads well. I switched the three new lines from tabs to spaces to match the rest of Progress.hx, and merged main in. I'll merge once CI is green.

@dimensionscape
dimensionscape merged commit f0f97dc into openfl:main Nov 12, 2026
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