Repository navigation
Releases
TriangleBin v1.1.0 — Windows DirectX / Windows Vulkan / macOS Metal / Android OpenGL ES / Android Vulkan / HarmonyOS Source
TriangleBin v1.1.0 — Windows DirectX / Windows Vulkan / macOS Metal / Android OpenGL ES / Android Vulkan / HarmonyOS Source
基于 Swung0x48/TriangleBin 的多平台版本。
- TriangleBin-Windows-DirectX-v1.1.0.exe — Windows 7+,单文件启动器,内含 x86 / x64 / ARM64;优先使用 Direct3D 12,失败自动回退 Direct3D 11;静态 CRT,无需 d3dcompiler_47.dll 或 VC++ 运行库。
- TriangleBin-Windows-Vulkan-v1.1.0.exe — Windows 7+,单文件启动器,内含 x86 / x64 / ARM64;Vulkan 1.0 core + VK_KHR_swapchain,需要驱动自带 Vulkan loader。
- TriangleBin-macOS-Metal-v1.1.0.zip — 通用二进制,Intel macOS 10.15+ / Apple Silicon macOS 11.0+;首次打开若被 Gatekeeper 拦截,请右键选择“打开”。
- TriangleBin-Android-OpenGLES-v1.1.0.apk — Android 5.0+,包名
com.socpk.trianglebin.opengles,应用名 Triangle Bin (GLES),单 APK 内含 arm64-v8a / armeabi-v7a / x86 / x86_64。原版要求 OpenGL ES 3.2,本版先试 3.2、失败自动回退 3.1,并修正了 ppf 数值在 Android 上多出多余百分号的问题;其余 UI、着色器与 Frag Count 计算与原版一致。 - TriangleBin-Android-Vulkan-v1.1.0.apk — Android 7.0+,包名
com.trianglebin.vulkan,应用名 Triangle Bin (VK),单 APK 内含四套 ABI。Controls 面板与 GLES 版同结构,3D 渲染顺序一致(先全屏渐变 quad,再随机三角形),切后台自动重建 swapchain。 - TriangleBin-HarmonyOS-Source-20261120.zip — HarmonyOS 工程源码,不含签名证书或 Profile;适合希望用自己的开发者账号签名、或自行构建的用户。解压后用 DevEco Studio 打开,启用“自动签名”后构建即可;详细步骤见包内
README.md。
HarmonyOS 仅提供源码包,不提供预编译 HAP:开发调试签名会绑定已登记设备,不适合公开下载。请下载源码包,用 DevEco Studio 自动签名后构建;公开发布请使用 AppGallery Connect 的 release 证书/Profile 签名。
两版 Android APK 使用同一签名、包名不同,可以同时安装;与官方原版(签名不同)不能覆盖安装。
本版 Android 相对 v1.0.0 的优化(画面与功能不变):GLES 缓存设备信息与分辨率、静态缓冲一次分配、随机三角形顶点按需上传、release 下移除 glGetError;Vulkan 每帧只绑定一次管线与描述符集、随机三角形顶点按版本去重上传。实测(Android 12 x86_64 模拟器,10 秒采样)GLES 主循环 CPU 24.6% → 21.7%,Vulkan 11.5% → 11.3%。
SHA256:
TriangleBin-Windows-DirectX-v1.1.0.exe:deaa6a89239580748bf8f2c4c1eb79db11c59d2e65d88831f2605bd39e169902TriangleBin-Windows-Vulkan-v1.1.0.exe:f4d2ecb3b484223af362dfebb40611f22b44c90c26edfb3d8c37730bda116cf2TriangleBin-macOS-Metal-v1.1.0.zip:aac6e48b95512c84118cfab9a90d7423254b5deb1507efa31ba0528a27dcc29aTriangleBin-Android-OpenGLES-v1.1.0.apk:c2e1168f8e1b2c18f22349bb23ba95993719e31a5c90d730d3bfb62bb623bf9bTriangleBin-HarmonyOS-Source-20261120.zip:fe593eccc8ac2d8b8092ecc42b630c5750af81d53e6ee6b8fc30001de75cbe96TriangleBin-Android-Vulkan-v1.1.0.apk:ba6c6e423c143ab1e9abf921da971bd5a35cb7aeeb4e0e149ddff4c0e3c6df8d
English
Multi-platform builds based on TriangleBin by Swung 0x48.
- TriangleBin-Windows-DirectX-v1.1.0.exe — Windows 7+, single-file launcher with x86 / x64 / ARM64 payloads; Direct3D 12 when available, automatic Direct3D 11 fallback; static CRT, no d3dcompiler_47.dll or VC++ runtime required.
- TriangleBin-Windows-Vulkan-v1.1.0.exe — Windows 7+, single-file launcher with x86 / x64 / ARM64 payloads; Vulkan 1.0 core + VK_KHR_swapchain; the driver-provided Vulkan loader is required.
- TriangleBin-macOS-Metal-v1.1.0.zip — Universal binary for Intel macOS 10.15+ and Apple Silicon macOS 11.0+; if Gatekeeper blocks the first launch, right-click and choose Open.
- TriangleBin-Android-OpenGLES-v1.1.0.apk — Android 5.0+, package
com.socpk.trianglebin.opengles, app name Triangle Bin (GLES), one APK with arm64-v8a / armeabi-v7a / x86 / x86_64. Upstream requires OpenGL ES 3.2; this build tries 3.2 and falls back to 3.1, and fixes the stray percent sign shown by the ppf slider on Android. UI, shaders and Frag Count math are otherwise identical to upstream. - TriangleBin-HarmonyOS-Source-20261120.zip — HarmonyOS project source, with no signing certificate or profile included. For users who want to sign with their own developer account or build it themselves. Unzip, open in DevEco Studio, enable automatic signing, then build; see
README.mdin the archive for details.
HarmonyOS is distributed as a source package only; no prebuilt HAP is provided. Development-signed HAPs are bound to the developer's registered devices and are not suitable for public download. Download the source package and build with DevEco Studio automatic signing. For public distribution, use an AppGallery Connect release certificate/profile.
- TriangleBin-Android-Vulkan-v1.1.0.apk — Android 7.0+, package
com.trianglebin.vulkan, app name Triangle Bin (VK), one APK with the same four ABIs. The Controls panel matches the GLES build and the render order is identical (full-screen gradient quad, then random triangles); the swapchain is recreated after backgrounding.
Both Android APKs share the same signature but different package names, so they install side by side; they cannot replace the official upstream build (different signature).
Android performance work in this release (no visual or functional change): the GLES build caches device strings and drawable size, allocates static buffers once, uploads random triangle vertices only when needed, and drops glGetError in release builds; the Vulkan build binds the pipeline and descriptor set once per frame and re-uploads random vertices only when the triangle count changes. Measured on an Android 12 x86_64 emulator (10 s sampling): GLES main-loop CPU 24.6% → 21.7%, Vulkan 11.5% → 11.3%.
TriangleBin-DX v1.0.0
TriangleBin-DX v1.0.0
DirectX 11/12 port of TriangleBin — a Windows tool that tells you whether your GPU is an IMR or a TBR by counting the fragments it actually shades.
This download is one file for every architecture. TriangleBin-DX-v1.0.0.exe detects the host CPU at startup and runs the matching build:
| Payload | Notes |
|---|---|
| x64 | the usual case |
| x86 | for 32-bit Windows |
| ARM64 | SDL2 linked statically |
It extracts the matching pair into %TEMP%, launches it, and deletes them again on exit. imgui.ini and trianglebin.log are written next to the executable, so the whole thing stays portable — there is no installer and nothing is added to the registry.
Requirements
- Windows 10 or 11
- A GPU that supports DirectX 11 (Shader Model 5.0). Direct3D 12 is used when available, with an automatic fallback to Direct3D 11; the app reports which one it got.
- Microsoft Visual C++ 2015-2022 Redistributable for the x64 and x86 payloads. The ARM64 build links the runtime statically.
If it crashes on startup
The app writes trianglebin-error-report.txt next to the executable, containing the OS version and build number, CPU architecture, GPU name, driver version, the highest supported DirectX feature level and the exact error. Sending that one file back is usually enough to diagnose a startup failure.
Licence
MIT. Based on TriangleBin by Swung 0x48; the original copyright notice is preserved in LICENSE.
中文说明
TriangleBin 的 DirectX 11/12 移植版。这一个文件就够了 —— 启动时自动识别 CPU 架构并运行对应的版本(x64 / x86 / ARM64),解压到 %TEMP% 运行,退出后自动清理,不需要安装,不写注册表。
需要 Windows 10/11、支持 DirectX 11 的显卡,以及微软 VC++ 2015-2022 运行库(ARM64 版本已静态链接,不需要)。启动失败时会在程序旁边生成 trianglebin-error-report.txt,把这个文件发回即可定位问题。