[enhancement] Add debugging levels or optimize the current logger #359

Open
opened 2026-12-04 17:25:18 +00:00 by Rockstar · 3 comments

What you would like

The original Victory source logged too many things that have no importance for diagnosing problems and issues. The current Darner logger does the same (tested on Darner f3840d73d3). Every ~1 s it prints ~55 lines of per-frame internal statistics (texture queue, descriptor heaps, hwrt, landing, card ledger, etc.), many over 1,000 characters, plus repeating lines like a texture already on the card is brought up to date although the card has no room for new ones and texture readback landed.

A 2 h playing session produces ~500,000 lines and ~125 MB log files, which is extremely large and unmanageable for a human or an AI agent to read.

This detail may be useful in a dev build, but the release build should at least have log levels option in the F1 menu, or an optimized logger that keeps only what's truly necessary for diagnosing issues.

I cannot provide the log file since it's too large to upload.
image

Are you working on a fix?

No

### What you would like The original Victory source logged too many things that have no importance for diagnosing problems and issues. The current Darner logger does the same (tested on Darner f3840d73d3). Every ~1 s it prints ~55 lines of per-frame internal statistics (texture queue, descriptor heaps, hwrt, landing, card ledger, etc.), many over 1,000 characters, plus repeating lines like `a texture already on the card is brought up to date although the card has no room for new ones` and `texture readback landed`. A 2 h playing session produces ~500,000 lines and ~125 MB log files, which is extremely large and unmanageable for a human or an AI agent to read. This detail may be useful in a dev build, but the release build should at least have log levels option in the F1 menu, or an optimized logger that keeps only what's truly necessary for diagnosing issues. I cannot provide the log file since it's too large to upload. ![image](/attachments/fad63524-a036-4c86-9de2-b17c33cb0b01) ### Are you working on a fix? No
image.png
4.5 KiB

On the current build, darner.exe play --set DARNER_LOG=warn starts with warnings and errors only. The same filter can be saved as DARNER_LOG=warn in darner-settings.txt.

I reproduced a separate settings problem in that path: migrating an older settings file can delete the saved filter and return to the default logging level. #362 preserves the filter. The same Windows fixture showed the saved setting being removed on main and kept with the patch.

On the current build, `darner.exe play --set DARNER_LOG=warn` starts with warnings and errors only. The same filter can be saved as `DARNER_LOG=warn` in `darner-settings.txt`. I reproduced a separate settings problem in that path: migrating an older settings file can delete the saved filter and return to the default logging level. [#362](https://git.gtahub.st/TrustNo1/Darner/pulls/362) preserves the filter. The same Windows fixture showed the saved setting being removed on main and kept with the patch.
Author

@andrewpozdnakov7-jpg That requires users to know about launch flags and settings files. Most Darner users are regular gamers, and they are the ones filing issues and attaching logs.

If the default log is huge, reports will be unusable. Reasonable defaults or enhancing the logger output matter more than opt-in filtering, so this should be handled out of the box in the release build. #362 doesn't fix this issue.

@andrewpozdnakov7-jpg That requires users to know about launch flags and settings files. Most Darner users are regular gamers, and they are the ones filing issues and attaching logs. If the default log is huge, reports will be unusable. Reasonable defaults or enhancing the logger output matter more than opt-in filtering, so this should be handled out of the box in the release build. #362 doesn't fix this issue.

The change to the release default is in draft #368. It moves eight repeated frame breakdowns out of the ordinary log. The production logger kept the frame summaries, warning and error in a matched Windows fixture and emitted the selected detail only when requested. Those eight message families account for about 715 KB of the 7 MB play log attached to #351.

A short comparison on a warm save would help establish how much this changes your steady-state logs. Use the default filter on both builds, hold the scene and settings fixed, and record the output bytes and line count over the same one-minute play interval. The long-run result will show whether the remaining repeated messages need attention too.

The change to the release default is in [draft #368](https://git.gtahub.st/TrustNo1/Darner/pulls/368). It moves eight repeated frame breakdowns out of the ordinary log. The production logger kept the frame summaries, warning and error in a matched Windows fixture and emitted the selected detail only when requested. Those eight message families account for about 715 KB of the 7 MB play log attached to #351. A short comparison on a warm save would help establish how much this changes your steady-state logs. Use the default filter on both builds, hold the scene and settings fixed, and record the output bytes and line count over the same one-minute play interval. The long-run result will show whether the remaining repeated messages need attention too.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#359
No description provided.