Commit Graph
15 Commits
Author SHA1 Message Date
Chaoscaot a64f24eb58 Fix block data key in read_blocks function
Updated the `read_blocks` function to retrieve `Data` instead of `BlockData` from the NBT structure. This resolves potential mismatches and ensures compatibility with the expected key in the NBT schema.
2025-05-11 19:51:49 +02:00
Chaoscaot 3f22799f7b Enhance time! macro for conditional compilation
The `time!` macro now only logs execution time in debug mode, avoiding unnecessary overhead in release builds. Added `CommandQueueProperties` and `Context` imports to `schemsearch-ocl-matcher` for potential future functionality.
2025-05-11 19:48:12 +02:00
Chaoscaot 881989a7bc Refactor NBT handling for version 3 schematics
Update logic to process "Schematic" key in NBT for version 3, ensuring compatibility with nested tags. Adjust function signatures to pass CompoundTag references, optimizing data handling and reducing unnecessary clones.
2025-05-04 20:26:26 +02:00
Chaoscaot b04c01e737 Refactor code structure and improve performance by optimizing OpenCL kernel and adding timing macros; update Cargo.toml for release profile settings; enhance main.rs and sinks.rs for better readability and organization. 2025-04-11 16:04:10 +02:00
Chaoscaot c554b1f164 Rename use_cpu to opencl and adjust logic accordingly. 2025-04-09 18:58:55 +02:00
Chaoscaot c30c10e494 Enable lazy initialization for OpenCL availability check 2025-04-09 18:38:34 +02:00
Chaoscaot f5286f7aec Enable lazy initialization for OpenCL availability check
Replaced direct calls to `ocl_available()` with a `OnceLock` for thread-safe and efficient lazy initialization. This avoids redundant checks and improves performance in scenarios where OpenCL is not repeatedly required.
2025-04-09 18:34:32 +02:00
Chaoscaot 8befbf4c7f Add CPU matching option and improve default behavior handling 2025-04-09 18:32:16 +02:00
Chaoscaot 35726def3e Add CPU matching option and improve default behavior handling 2025-04-09 18:30:51 +02:00
Chaoscaot 1d3d5b3e6e **Optimize ProQue initialization with OnceLock**
Replaced repeated ProQue initialization with a static OnceLock to ensure efficient and thread-safe reuse. This minimizes the overhead of recreating the ProQue instance while maintaining correct behavior by dynamically updating its dimensions.
2025-04-09 14:39:14 +02:00
Chaoscaot 47bbf25ac7 Remove deprecated crates and introduce OpenCL matcher integration 2025-04-09 13:41:50 +02:00
Chaoscaot 2a584e878f Fixing... 2024-04-27 22:30:29 +02:00
ChaoscaotandGitHub 33f5fe03fe Merge pull request #11 from Chaoscaot/add-invalid-nbt-arg
🔧 Add invalid_nbt flag.
2024-04-27 21:55:13 +02:00
Chaoscaot 0e6f2c3f78 🔧 Add invalid_nbt flag. 2024-04-27 21:27:42 +02:00
ChaoscaotandGitHub 82108d9e36 🛠️ Fix incorrect CSV format in OutputFormat::CSV. (#10) 2024-04-27 20:19:10 +02:00