I think reducing the hardware acceleration might work. so how to reduce this using code?