Playing With Vulkan Through Python, Basic Performance Figures To C++

Written by Michael Larabel in Vulkan on 30 July 2016 at 12:56 PM EDT. 16 Comments
VULKAN
The language bindings for the Vulkan high-performance graphics API have exploded since the debut of Vulkan 1.0 earlier this year. There's support from Rust to Java for interacting with this Khronos graphics API, including support for Python.

A Phoronix reader pointed out to us today python-vulkan-triangle as a nice example application for interacting with Vulkan via Python. This Python program simply draws a triangle in a window while using ctypes for the binding to Vulkan.

This Python Vulkan Triangle demo program is still being tuned, but under Windows 10 with a Radeon R9 280 the developer reports around ~4000 FPS with the no-debug Python build versus ~4300 FPS when running the same demo program written in C++. With a Radeon R6 on an AMD A10-7300, the performance was ~750 FPS for the Python version to ~800 FPS to the C++ version. C++ is faster as expected, but the performance is relatively close compared to other Python vs. C++ non-graphics benchmarks. The developer also noted the frame-rate for the Python Vulkan demo program is much less stable than the C++ version.

Those interested in this multi-platform program for coding Python Vulkan programs can learn more or download the code over on GitHub.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week