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

Flashing of debug break message. #220

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

MiranDMC
Copy link
Collaborator

Make script break point message flashing, so it does not look like game froze.

@MiranDMC MiranDMC requested a review from x87 September 29, 2024 21:44
@@ -97,7 +97,8 @@ class DebugUtils
screenLog.Draw();

// draw active breakpoints list
if(!pausedScripts.empty())
if (!pausedScripts.empty() &&
(CTimer::m_FrameCounter & 0xE) != 0) // flashing
Copy link

Choose a reason for hiding this comment

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

can it be distracting/annoying?
should we consider an option to toggle it?

Copy link
Collaborator Author

@MiranDMC MiranDMC Sep 30, 2024

Choose a reason for hiding this comment

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

Everything is frozen, there is not much to be distracted from. I caught myself several times on thinking game just crashed.
Flashing is more like text disappearing for every 16th frame, so it draws attention but still is readable.
Only active break point list on the right side of the screen is flashing.

@MiranDMC MiranDMC merged commit 4dfbfb2 into master Oct 2, 2024
2 checks passed
@MiranDMC MiranDMC deleted the Flashing_of_debug_break_message branch October 2, 2024 06:13
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