1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-26 14:41:53 +01:00

719 Commits

Author SHA1 Message Date
icex2
1b0426941d merge commit for archive created by Sapling 2025-02-13 14:34:30 +01:00
icex2
f5a82fe049 feat: d3d9-monitor-check allow skip results
Allow pressing ESC to skip results and not having
to wait for 5 secs
2025-02-13 14:34:13 +01:00
icex2
2a5ddacb36
Merge 9246f72b8003ea6951c508be25df185f55de3921 into sapling-pr-archive-icex2 2025-02-13 14:30:12 +01:00
icex2
9246f72b80 feat: Improve d3d9-monitor-check command line args
Use more user-friendly seconds for total and warm-up time
instead of frames. Use the refresh rate to calculcate the
total frame count internally for the test.
2025-02-13 14:30:05 +01:00
icex2
f6d8e30671
Merge 8afab5c232bd8e673db33032c7827b71a1d5fc00 into sapling-pr-archive-icex2 2025-02-13 14:29:28 +01:00
icex2
8afab5c232 feat: Improve d3d9-monitor-check command line args
Use more user-friendly seconds for total and warm-up time
instead of frames. Use the refresh rate to calculcate the
total frame count internally for the test.
2025-02-13 14:29:21 +01:00
icex2
c0be02a24f feat: d3d9-monitor-check tool (#322)
A separate application to run the infamous IIDX “monitor check”.

The on-screen output has been enhanced to provide more
detailed information about the on-going process. The tool
furthermore allows basic querying of adapter and adapter
modes information from the command line. These additional
options can be useful to gather more debug information
or select correct parameters for the monitor test from actually
supported mode parameters by the adapter.

The tool has been tested on an actual cabinet with nvgpu
setting different custom timings. The accuracy seems to be
even higher than what IIDX’s monitor check is actually showing.
For example, with a custom timing of 59.900, the tool yields 59.902.
Meanwhile, the monitor check of iidx 29 59.8981 hz to 59.8997 hz
on screen.

This doesn’t mean the game’s getting inaccurate values. The game
actually syncs and plays just fine. However, the game’s monitor check
cannot be used as a reference for “getting the avg. refresh rate”
value as an input parameter for other tools, e.g. chart patching with
btools.

Co-authored-by: icex2 <djh.icex2@gmail.com>
2025-02-13 14:28:34 +01:00
icex2
e7459659dd merge commit for archive created by Sapling 2025-02-13 14:27:16 +01:00
icex2
3aa128e525 feat: Improve d3d9-monitor-check command line args
Use more user-friendly seconds for total and warm-up time
instead of frames. Use the refresh rate to calculcate the
total frame count internally for the test.
2025-02-13 14:26:33 +01:00
icex2
74bdd65098
Merge a66aba45b9c49c70a10428946faddd692030c321 into sapling-pr-archive-icex2 2025-02-11 15:52:28 +01:00
icex2
a66aba45b9 feat: d3d9-monitor-check tool
A separate application to run the infamous IIDX “monitor check”.

The on-screen output has been enhanced to provide more
detailed information about the on-going process. The tool
furthermore allows basic querying of adapter and adapter
modes information from the command line. These additional
options can be useful to gather more debug information
or select correct parameters for the monitor test from actually
supported mode parameters by the adapter.

The tool has been tested on an actual cabinet with nvgpu
setting different custom timings. The accuracy seems to be
even higher than what IIDX’s monitor check is actually showing.
For example, with a custom timing of 59.900, the tool yields 59.902.
Meanwhile, the monitor check of iidx 29 59.8981 hz to 59.8997 hz
on screen.

This doesn’t mean the game’s getting inaccurate values. The game
actually syncs and plays just fine. However, the game’s monitor check
cannot be used as a reference for “getting the avg. refresh rate”
value as an input parameter for other tools, e.g. chart patching with
btools.
2025-02-11 15:52:15 +01:00
icex2
1373e9f1f4
Merge 9e2319bd136fe738d0b7ee5ec950ea5c6b8e6947 into sapling-pr-archive-icex2 2025-02-11 15:34:43 +01:00
icex2
9e2319bd13 feat: Bump iidxhook9 supported versions, EPOLIS “support"
No changes required, just make support visible by reflecting
it in distribution package naming, documentation and
filenaming
2025-02-11 15:34:38 +01:00
icex2
5687392a92 merge commit for archive created by Sapling 2025-02-09 16:16:20 +01:00
icex2
addcdf8d16 doc: Dev journal entry about IIDX engine
Due to recent development of tools and discussions, this
is something that came up and has probably been overdue
for ages.
2025-02-09 16:16:13 +01:00
icex2
1fbb5ac39f merge commit for archive created by Sapling 2025-02-09 15:55:07 +01:00
icex2
191e1e74f0 doc: Dev journal entry about IIDX engine
Due to recent development of tools and discussions, this
is something that came up and has probably been overdue
for ages.
2025-02-09 15:54:58 +01:00
icex2
34807f0b9d
Merge d442177f217b2bd95e09df124a11c3dd7decdb56 into sapling-pr-archive-icex2 2025-02-09 15:21:46 +01:00
icex2
d442177f21 doc: Dev journal entry about IIDX engine
Due to recent development of tools and discussions, this
is something that came up and has probably been overdue
for ages.
2025-02-09 15:21:40 +01:00
icex2
af372df06b
Merge 4ed3c97c2a7148b28c5c64565fde97950d2bb669 into sapling-pr-archive-icex2 2025-02-08 23:22:01 +01:00
icex2
4ed3c97c2a feat: Add separate d3d9-frame-graph-hook
Allow this to be hooked by any application with a d3d9
render backend. This is not compatible with d3d9ex.
2025-02-08 23:21:49 +01:00
icex2
0d876fc806 merge commit for archive created by Sapling 2025-02-08 23:20:46 +01:00
icex2
2b08a0cc1a feat: Add frame time performance graph imgui overlay
A overlay window showing the a frame time graph with
the current frame time, ~10 seconds of history as well
as reference lines for the current avg. and a configurable
target frame time.

This is considered a debug tool to support in any efforts
that are related to understanding current frame times
of the games. More specifically this can be used to asses
impact of any bemanitools hooking to the game’s main
(render) loop.
2025-02-08 23:20:31 +01:00
icex2
d8e604cdd9
Merge 95f792f655468ec21f97e0992a50374f6c458664 into sapling-pr-archive-icex2 2025-02-08 23:18:31 +01:00
icex2
95f792f655 feat: Add bt d3d9 hook specific imgui overlay
For now, we focus on internal overlays for bemanitools
that hook into an existing d3d9 context. The current
abstraction is fairly thin and should be fine as a start.

Implementations are called “components” and hook
up with a single frame_update function to execute
and logic and drawing updates with imgui
2025-02-08 23:18:16 +01:00
icex2
7b8eec72d3 merge commit for archive created by Sapling 2025-02-08 23:16:47 +01:00
icex2
83621fa5d5 fix: Add missing hook_table_revert function
The function signature was already defined in the header
but the implementation in the module missing
2025-02-08 23:16:40 +01:00
icex2
563d6dd793
Merge e69c75bf7fa4c8423f79957b3f8257e76b5020dc into sapling-pr-archive-icex2 2025-02-08 23:14:58 +01:00
icex2
e69c75bf7f fix: Add missing hook_table_revert function
The function signature was already defined in the header
but the implementation in the module missing
2025-02-08 23:14:25 +01:00
icex2
847cc3322e
Merge 48cd2bc68732ff7d3264f10a55af2e2d8094d663 into sapling-pr-archive-icex2 2025-02-08 23:12:42 +01:00
icex2
48cd2bc687 feat: Integrate imgui library
Version 1.91.7 of the imgui library with the cimgui wrapper.

imgui allows us to easily create minimal and powerful UI for
use-cases like in-game overlays or separate tooling.

The additional wrappers cimgui_impl_dx9 and cimgui_impl_win32
were added to provide a full C linkage integration for the rest
of the code base.

Tweaks to the makefile were kept to a minimum but enable
compilation of C++ since imgui is C++ based.

Remark: At this point bemanitools itself is still to be kept a pure
C codebase. Due to the lack of proper module/library management
with the current build system in bemanitools 5, proper separation
of concerns and clean integration with external libraries isn’t
possible with reasonable effort.
2025-02-08 23:11:59 +01:00
icex2
3db8bc4898
Merge 9b5f627dd178cc9a47a504ab6078f2032273d69d into sapling-pr-archive-icex2 2025-02-08 23:02:32 +01:00
icex2
9b5f627dd1 feat: nvgpu tool for tweaking nvidia gpu driver settings
An open source re-implementation of the “NvDisplayConfigLDJ"
tool with additional enhancements.

This can be used to tweak your nvidia GPU driver settings to
create custom display timings to address IIDX’s requirement
if expecting proper display timings. This can also be used for
any legacy IIDX versions that even expect very specific display
timings, e.g. 59.95 or 60.05 hz.

Furthermore, creating application profiles allows further tweaks
to important GPU settings such as the current performance mode
setting. This is crucial to ensure the GPU is not going into any
kind of power saving states which results in non-smooth
scrolling during gameplay and micro stuttering that cannot
be measured on application level.
2025-02-08 23:02:27 +01:00
icex2
29f57065fe merge commit for archive created by Sapling 2025-02-08 23:01:49 +01:00
icex2
05889947fe feat: nvgpu tool for tweaking nvidia gpu driver settings
An open source re-implementation of the “NvDisplayConfigLDJ"
tool with additional enhancements.

This can be used to tweak your nvidia GPU driver settings to
create custom display timings to address IIDX’s requirement
if expecting proper display timings. This can also be used for
any legacy IIDX versions that even expect very specific display
timings, e.g. 59.95 or 60.05 hz.

Furthermore, creating application profiles allows further tweaks
to important GPU settings such as the current performance mode
setting. This is crucial to ensure the GPU is not going into any
kind of power saving states which results in non-smooth
scrolling during gameplay and micro stuttering that cannot
be measured on application level.
Summary:

Test Plan:
2025-02-08 23:00:58 +01:00
icex2
2a34bb19da
Merge 8b22ef1e8c53ec56dfbc45542ac89a4fe9657f66 into sapling-pr-archive-icex2 2025-02-08 22:44:01 +01:00
icex2
8b22ef1e8c feat: Add iidxio-async implementation
A shim library implementing the same concept as the already
existing ddrio-async library. The iidxio implementation takes
another iidxio library and runs it asynchronously which may
improve performance for certain iidxio implementations,
e.g. if the send and receive functions are driving actual IO
calls synchrously and are expensive.

This is not a replacement for a well engineered and proper
implementation of a iidxio library for any specific use-case.
It does not fix bad performance of existing implementations,
i.e. if the poll rate is too low because actual IO is too slow.

Use with caution and know why and when you need to use
it.
2025-02-08 22:42:52 +01:00
icex2
b2006ec9be merge commit for archive created by Sapling 2025-02-08 22:39:49 +01:00
icex2
db6e7a6ad9 feat: d3d9-monitor-check tool
A separate application to run the infamous IIDX “monitor check”.

The on-screen output has been enhanced to provide more
detailed information about the on-going process. The tool
furthermore allows basic querying of adapter and adapter
modes information from the command line. These additional
options can be useful to gather more debug information
or select correct parameters for the monitor test from actually
supported mode parameters by the adapter.

The tool has been tested on an actual cabinet with nvgpu
setting different custom timings. The accuracy seems to be
even higher than what IIDX’s monitor check is actually showing.
For example, with a custom timing of 59.900, the tool yields 59.902.
Meanwhile, the monitor check of iidx 29 59.8981 hz to 59.8997 hz
on screen.

This doesn’t mean the game’s getting inaccurate values. The game
actually syncs and plays just fine. However, the game’s monitor check
cannot be used as a reference for “getting the avg. refresh rate”
value as an input parameter for other tools, e.g. chart patching with
btools.
2025-02-08 22:39:41 +01:00
icex2
f15eec50fe
Merge 27bb8a0e2d98cfb7b96a5d6ba4f6188ce6ee18f9 into sapling-pr-archive-icex2 2025-02-08 22:17:30 +01:00
icex2
27bb8a0e2d feat: d3d9-monitor-check tool
A separate application to run the infamous IIDX “monitor check”.

The on-screen output has been enhanced to provide more
detailed information about the on-going process. The tool
furthermore allows basic querying of adapter and adapter
modes information from the command line. These additional
options can be useful to gather more debug information
or select correct parameters for the monitor test from actually
supported mode parameters by the adapter.

The tool has been tested on an actual cabinet with nvgpu
setting different custom timings. The accuracy seems to be
even higher than what IIDX’s monitor check is actually showing.
For example, with a custom timing of 59.900, the tool yields 59.902.
Meanwhile, the monitor check of iidx 30 yields ~XXX TODO.
2025-02-08 22:17:27 +01:00
icex2
e0c7141896
Merge 5f5824f9f8212c6f152ee22b0b9f0ce955317495 into sapling-pr-archive-icex2 2025-02-08 22:17:05 +01:00
icex2
5f5824f9f8 feat: d3d9-monitor-check tool
Summary:

Test Plan:
A separate application to run the infamous IIDX “monitor check”.

The on-screen output has been enhanced to provide more
detailed information about the on-going process. The tool
furthermore allows basic querying of adapter and adapter
modes information from the command line. These additional
options can be useful to gather more debug information
or select correct parameters for the monitor test from actually
supported mode parameters by the adapter.

The tool has been tested on an actual cabinet with nvgpu
setting different custom timings. The accuracy seems to be
even higher than what IIDX’s monitor check is actually showing.
For example, with a custom timing of 59.900, the tool yields 59.902.
Meanwhile, the monitor check of iidx 30 yields ~XXX TODO.
2025-02-08 22:16:55 +01:00
icex2
9cf9cac4e3 merge commit for archive created by Sapling 2025-02-07 22:41:56 +01:00
icex2
a11c7a0704 feat: Add separate d3d9-frame-graph-hook
Allow this to be hooked by any application with a d3d9
render backend. This is not compatible with d3d9ex.
2025-02-07 22:41:44 +01:00
icex2
83473a83be feat: nvgpu tool for tweaking nvidia gpu driver settings
An open source re-implementation of the “NvDisplayConfigLDJ"
tool with additional enhancements.

This can be used to tweak your nvidia GPU driver settings to
create custom display timings to address IIDX’s requirement
if expecting proper display timings. This can also be used for
any legacy IIDX versions that even expect very specific display
timings, e.g. 59.95 or 60.05 hz.

Furthermore, creating application profiles allows further tweaks
to important GPU settings such as the current performance mode
setting. This is crucial to ensure the GPU is not going into any
kind of power saving states which results in non-smooth
scrolling during gameplay and micro stuttering that cannot
be measured on application level.
Summary:

Test Plan:
2025-02-07 22:41:44 +01:00
icex2
aa3e7d307d feat: Add frame time performance graph imgui overlay
A overlay window showing the a frame time graph with
the current frame time, ~10 seconds of history as well
as reference lines for the current avg. and a configurable
target frame time.

This is considered a debug tool to support in any efforts
that are related to understanding current frame times
of the games. More specifically this can be used to asses
impact of any bemanitools hooking to the game’s main
(render) loop.
2025-02-07 22:41:44 +01:00
icex2
1800f75f3d feat: Add bt d3d9 hook specific imgui overlay
For now, we focus on internal overlays for bemanitools
that hook into an existing d3d9 context. The current
abstraction is fairly thin and should be fine as a start.

Implementations are called “components” and hook
up with a single frame_update function to execute
and logic and drawing updates with imgui
2025-02-07 22:41:44 +01:00
icex2
c0289b14d3 fix: Add missing hook_table_revert function
The function signature was already defined in the header
but the implementation in the module missing
2025-02-07 22:41:44 +01:00
icex2
d17dcea594 feat: Integrate imgui library, squash to initial integration
Version 1.91.7 of the imgui library with the cimgui wrapper.

imgui allows us to easily create minimal and powerful UI for
use-cases like in-game overlays or separate tooling.

The additional wrappers cimgui_impl_dx9 and cimgui_impl_win32
were added to provide a full C linkage integration for the rest
of the code base.

Tweaks to the makefile were kept to a minimum but enable
compilation of C++ since imgui is C++ based.

Remark: At this point bemanitools itself is still to be kept a pure
C codebase. Due to the lack of proper module/library management
with the current build system in bemanitools 5, proper separation
of concerns and clean integration with external libraries isn’t
possible with reasonable effort.


Summary:

Test Plan:
2025-02-07 22:41:44 +01:00