mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
fbc8bc2502
## Link to GitHub Issue, if one exists #452 ## Description of change * Split the MDXF I/O option into three: auto, thread, and backfill. `auto` is the same as what `thread` used to be before this change (based on I/O poll rate), but `thread` now always forces thread poll mode. `auto` is the default (behavior wise, same as before) * For the poll rate measurement, start polling after 20s mark to avoid frame drops during game boot * Minor code clean up ## Testing manual test in windowed + full screen
28 lines
550 B
C++
28 lines
550 B
C++
#pragma once
|
|
|
|
#include "../module.h"
|
|
|
|
namespace acio {
|
|
|
|
enum class MDXFBufferFillMode {
|
|
// backfill mode, but if <120Hz, enable poll thread
|
|
AUTO_MODE,
|
|
|
|
// forces poll thread
|
|
THREAD_MODE,
|
|
|
|
// forces backfill mode (no poll thread)
|
|
BACKFILL_MODE
|
|
};
|
|
|
|
extern MDXFBufferFillMode MDXF_BUFFER_FILL_MODE;
|
|
|
|
class MDXFModule : public ACIOModule {
|
|
public:
|
|
MDXFModule(HMODULE module, HookMode hookMode);
|
|
|
|
virtual void attach() override;
|
|
~MDXFModule() override;
|
|
};
|
|
}
|