Files
XCSDD/docs/api/resources/asyncloader/getprogress.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

454 B
Raw Permalink Blame History

AsyncLoader::GetProgress

float GetProgress() const

获取整体加载进度。返回已完成加载数与总请求数的比值,范围 0.0f ~ 1.0f。

参数:

返回: 加载进度0.0f ~ 1.0f

复杂度: O(1)

示例:

float progress = AsyncLoader::Get().GetProgress();
printf("Loading: %.1f%%\n", progress * 100.0f);

相关文档