lowenware / dotrix

A 3D engine with ECS and Vulkan renderer for Rust developers
https://dotrix.rs
MIT License
290 stars 11 forks source link

Force wgpu to use High Performance GPU #139

Closed Xaniaro closed 2 years ago

Xaniaro commented 2 years ago

Getting adapter from wgpu using wgpu::PowerPreference::default() returns wgpu::PowerPreference::LowPower.

This PR changes it. Nobody wants to game on integrated GPU. This change increased my performance 6x on compute example.

Lowentwickler commented 2 years ago

Is it safe? Will it still work on integrated cards?

Lowentwickler commented 2 years ago

Lets assume it is :) Perhaps we could need a possibility to choose in future. But looks like not now.

Tested on Mac and Linux machines with integrated Intel card.