Skip to content

Fix+Optimized+Extended: Console - #1113

Merged
Raltyro merged 8 commits into
CodenameCrew:mainfrom
HEIHUAa:fix-console
Oct 3, 2026
Merged

Raltyro merged 8 commits into
CodenameCrew:mainfrom
HEIHUAa:fix-console

Conversation

@HEIHUAa

@HEIHUAa HEIHUAa commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Fixed an issue where enabling console-related windows would cause a popup crash if a script called __script__.destroy();.

@HEIHUAa

HEIHUAa commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Added some extra things; I wrote them a while ago and forgot to post them.

Optimized the code.
Cached uid/label.
Improved object display performance, and no synchronization is performed when an object is not expanded.
Added cache pre-splitting for log output, rebuilding only when the content changes.
Only draw visible lines.
Removed the ring buffer, replaced with push/shift to discard the oldest logs.
Completed a TODO to always follow the latest log.
Added Copy Log to the window content to solve the issue where the current version cannot copy.
Added a right-click menu to the window, allowing selection of Copy Everything / Copy Visible / Copy This Line / Clear (multilingual support not yet added).

@HEIHUAa HEIHUAa changed the title Fix console Fix+optimized+extended console Sep 23, 2026
@HEIHUAa HEIHUAa changed the title Fix+optimized+extended console Fix+Optimized+Extended: Console Sep 23, 2026
@HEIHUAa

HEIHUAa commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Optimized the console performance overhead that still occurs when the console is not visible (this issue significantly affected the maximum frame rate under unlimited frame rate).

@TheZoroForce240

Copy link
Copy Markdown
Contributor

Sorry for taking a while but I'll try this out later, code looks good to me but the only thing I think should be changed is the return when ui is disabled in Main.hx should really be checking if there isn't any imgui windows open instead for future uses, I meant to fix this earlier because it also fixes a bug with no keyboard focus when you open the game so its probably fine for now, I can change this myself later or if you wanna do it yourself thats fine

@Raltyro
Raltyro merged commit b733848 into CodenameCrew:main Oct 3, 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.

4 participants