Skip to main content
Version: 3.2.0

Force software rendering

In some instances it may be desirable to use the software renderer, not Android's default hardware renderer. Differences in GPU hardware from device to device (and emulators running on different architectures) may cause flakiness in rendering.

Please read more about Hardware acceleration for more information.

caution

Software rendering is not recommended.

The software rendering pipeline on Android does not produce the same results as the default hardware rendering and can omit shadows, elevation and other advanced features. If you're having difficulty with flaky or inconsistent rendering, it is recommended that you consider the options presented in Accounting for platform differences.

@ScreenshotInstrumentation
@Test
fun default() {
rule
.setUseSoftwareRenderer(true)
.assertSame()
}