《▓ Quantified API ▓》
Quantified API(简称 QAPI)是一个专为模组设计的性能框架,旨在处理那些不仅仅是在所有地方随意添加异步操作并祈祷它们不会崩溃的模组。
它的目标非常简单:阻止模组烧坏主线程,并提供一个共享运行时环境,能够妥善管理 CPU 工作、并行任务、缓存、依赖图以及 GPU 加速,而无需将游戏变成死锁模拟器。
《▒ 欢迎来到新一代 ▒》
随着 V2 的发布,Quantified API 得到了巨大的提升。
调度器、CPU 运行时、缓存系统、任务图、GPU 路由、兼容层、支持平台、构建系统以及整体 API 设计均已得到大幅改进或完全重建。
Quantified API 现已提供完整的官方文档,涵盖从基础安装到高级计算工作负载、GPU 路由、缓存、迁移、故障排除以及示例等所有内容 :DDD
《▒ 它实际能做什么 ▒》
- 完善的异步调度,支持工作区、负载路由、遥测以及合理的回退行为
- 并行执行,适用于可以安全地在多个 CPU 线程间分割的负载
- 感知依赖的任务图,适用于需要按特定顺序运行的工作流
- 后端感知的计算路由,涵盖 CPU、Vulkan 和 OpenCL
- 重复任务抑制,使得重复的相同工作可以被合并,而不是执行数百次
- 高级缓存,支持内存、磁盘、持久化、过期、压缩和刷新
- 自动模组注册,通过 Fabric、Forge 和 NeoForge 的元数据实现
- 实时诊断,通过运行时遥测和 Quantified 网页面板实现
《▒ Vulkan 与 OpenCL 加速 ▒》
量化 API 提供了 Vulkan 计算加速功能,无需用户先手动配置一堆随机设置即可直接运行。
Vulkan 是首选的 GPU 后端,而 OpenCL 仍作为兼容性和备用选项提供。
GPU 加速也并非盲目地用于每一个微小的任务。Quantified API 在决定工作应在何处运行之前,会权衡工作量、运行时状态、可用硬件以及首选后端。
- 隔离的 Vulkan 探测,以便损坏的驱动程序或加载器问题不会立即导致游戏崩溃
- 延迟初始化,使 GPU 启动不会在游戏仍在加载时与 Minecraft 争抢资源
- 更清晰的运行时状态,确保失败或未完全初始化的后端不会被当作就绪状态处理
- 自动回退路由,在需要时从 Vulkan 回退到 OpenCL,最终回退到 CPU
- 设备选择与诊断,通过 Quantified Webpanel 进行管理
《▒ 更快的运行时 ▒》
Quantified API 底层的运行时经过大幅重构,旨在减少围绕模组实际想要执行的工作所增加的开销。
- 降低对微小且独特任务的开销
- 显著增强的重复突发抑制能力
- 更廉价的并行工作负载编排
- 对小规模任务图实现极快的执行速度
- 更好地处理线程安全与非线程安全的工作负载
- 改进持久化与异步缓存行为
基本上,现在它花在管理工作上的时间少了很多,而真正执行工作的时间多了一大截。疯狂的想法,我知道吧 xd
《▒ 性能提升 ▒》
与旧版 v1.4.4 发布版的内部运行时基准测试显示,在所有测试的工作负载类型中均有显著提升。
- 微小独特任务突发:快约
3.95x - 重复任务突发:快约
45.4x - 小规模并行工作负载:快约
5.54x - 中等规模并行工作负载:快约
9.16x - 小规模 DAG 工作负载:在测试设置下,最高快约
2952x
重复抑制也有所改善,在测试的重复突发中,实际执行次数从 2048 次减少到仅 1 次。
所以嘛,V2 绝对不是一个小小的更新 :DDD
《▒ Quantified Webpanel ▒》
量化 API 包含一个实时 Web 面板,让开发者和用户能够直观地查看运行时实际执行的操作,而不是盲目信任那些神秘的后台线程。
可通过配置文件或使用 /quantified webpanel 命令启用。
- 调度器与队列活动状态
- CPU 和 GPU 后端状态
- 已连接模组的运行情况
- Vulkan 和 OpenCL 诊断信息
- 首选 GPU 与后端选择
- 导出诊断数据以方便调试
- 可选的认证与 HTTPS 支持
《▒ 兼容性 ▒》
- 支持 Fabric、Forge 和 NeoForge
- 支持从
1.20.1到当前支持的1.21.X及1.26.X平台版本的 Minecraft - Vulkan 为完全可选功能,在不可用时可优雅降级
- OpenCL 仍可用于较旧或兼容性较差的硬件
- CPU 执行始终作为最终备用方案可用
- 基于旧版 V1 API 制作的模组可通过兼容层继续正常工作
- 自动检测加载器元数据,减少开发者的手动配置工作
《▒ 官方文档 ▒》
Quantified API 现已提供完善的官方文档,面向新开发者及现有开发者。
文档涵盖安装指南、支持的平台、计算任务负载、并行处理、任务图、缓存机制、Vulkan 与 OpenCL 路由、兼容性、迁移步骤、故障排除以及完整示例。
《▒ 许可与支持 ▒》
本软件依据 BRSSLA V1.5 许可证授权,个人与非商业用途免费使用。
将 Quantified API 作为依赖项包含在内的模组开发者,其模组自动获得商业使用权。
Quantified API 旨在保持灵活、易于集成,并在尽可能提供用户友好体验的同时,赋予开发者对其任务负载的充分控制权。
如果您有任何需求、建议、文档改进意见或发现了 Bug,欢迎提交 GitHub Issue 或直接发起 Pull Request :]
由 Admany - BlackRift Studios 开发与维护 © 2026
《▓ Quantified API ▓》
Quantified API, or QAPI, is a performance framework for mods that do a bit more than just slap random async onto everything and pray it doesn't implode xd
Its goal is pretty simple: stop mods from frying the main thread and provide one shared runtime that can properly manage CPU work, parallel tasks, caching, dependency graphs, and GPU acceleration without turning the game into a deadlock simulator.
《▒ Welcome to the New Generation ▒》
With the release of V2, Quantified API has been upgraded by a LOT.
The scheduler, CPU runtime, caching system, task graphs, GPU routing, compatibility layer, supported platforms, build system, and general API design have all been heavily improved or completely rebuilt.
Quantified API now also has full official documentation, covering everything from basic installation to advanced compute workloads, GPU routing, caching, migration, troubleshooting, and examples :DDD
《▒ What It Actually Does ▒》
- Proper async scheduling with worker lanes, workload routing, telemetry, and sane fallback behaviour
- Parallel execution for workloads that can be safely divided across multiple CPU threads
- Dependency-aware task graphs for workflows where jobs need to run in a specific order
- Backend-aware compute routing across CPU, Vulkan, and OpenCL
- Duplicate task suppression so repeated identical work can be merged instead of executed hundreds of times
- Advanced caching with memory, disk, persistence, expiration, compression, and refresh support
- Automatic mod registration through Fabric, Forge, and NeoForge metadata
- Live diagnostics through runtime telemetry and the Quantified webpanel
《▒ Vulkan and OpenCL Acceleration ▒》
Quantified API provides Vulkan compute acceleration that simply works without requiring users to manually configure a bunch of random settings first.
Vulkan is the preferred GPU backend, while OpenCL remains available as a compatibility and fallback option.
GPU acceleration isn't blindly used for every tiny task either. Quantified API considers the workload, runtime state, available hardware, and preferred backend before deciding where the work should run.
- Isolated Vulkan probing so broken drivers or loader issues don't instantly brick the game
- Deferred initialization so GPU startup doesn't fight with Minecraft while the game is still loading
- Cleaner runtime states so failed or half-initialized backends aren't treated as ready
- Automatic fallback routing from Vulkan to OpenCL and finally to CPU when needed
- Device selection and diagnostics through the Quantified webpanel
《▒ Faster Runtime ▒》
The runtime underneath Quantified API was heavily redesigned to reduce the amount of overhead added around the work mods actually want to execute.
- Lower overhead for tiny and unique tasks
- Much stronger duplicate burst suppression
- Cheaper parallel workload orchestration
- Massively faster execution for smaller task graphs
- Better handling of thread-safe and non-thread-safe workloads
- Improved persistent and asynchronous cache behaviour
Basically, it now spends a lot less time managing work and a lot more time actually doing it. Crazy idea, ik xd
《▒ Performance Improvements ▒》
Internal runtime benchmarks against the older v1.4.4 release showed major improvements across all tested workload types.
- Tiny unique task bursts: around
3.95xfaster - Duplicate task bursts: around
45.4xfaster - Small parallel workloads: around
5.54xfaster - Medium parallel workloads: around
9.16xfaster - Small DAG workloads: up to around
2952xfaster in the tested setup
Duplicate suppression also improved from 2048 real executions to only 1 real execution in the tested duplicate burst.
So yh, V2 wasn't exactly a small update :DDD
《▒ Quantified Webpanel ▒》
Quantified API includes a live webpanel so developers and users can see what the runtime is actually doing instead of blindly trusting the mysterious background threads.
It can be enabled through the config or with /quantified webpanel.
- Scheduler and queue activity
- CPU and GPU backend states
- Connected mod usage
- Vulkan and OpenCL diagnostics
- Preferred GPU and backend selection
- Diagnostics export for easier debugging
- Optional authentication and HTTPS support
《▒ Compatibility ▒》
- Supports Fabric, Forge, and NeoForge
- Supports Minecraft versions from
1.20.1through the currently supported1.21.Xand1.26.Xplatform lines - Vulkan is completely optional and degrades cleanly when unavailable
- OpenCL remains available for older or less compatible hardware
- CPU execution is always available as the final fallback
- Mods made for the older V1 API can continue working through the compatibility layer
- Automatic loader metadata detection reduces manual setup for developers
《▒ Official Documentation ▒》
Quantified API now has proper official documentation for both new and existing developers.
It covers installation, supported platforms, compute workloads, parallel processing, task graphs, caching, Vulkan and OpenCL routing, compatibility, migration, troubleshooting, and full examples.
《▒ Licensing and Support ▒》
Licensed under BRSSLA V1.5, which is free for personal and non-commercial use.
Mod developers who include Quantified API as a dependency automatically gain Commercial Rights for their mod.
Quantified API is built to be flexible, easy to integrate, and as user-friendly as possible while still giving developers proper control over their workloads.
If you have any requests, ideas, documentation improvements, or found a bug, feel free to open a GitHub issue or even a pull request :]
Developed and Maintained by Admany - BlackRift Studios 2026
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Quantified API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
GitHub 上的更新日志,但添加了 Linux 支持 :]
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧