Tweak block size to increase performance
This commit is contained in:
parent
3517619b4d
commit
2094aebfa8
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ import eu.depau.ddroid.utils.name
|
||||||
import java.nio.ByteBuffer
|
import java.nio.ByteBuffer
|
||||||
|
|
||||||
class UsbAPIWriteService : UsbWriteService("UsbAPIWriteService") {
|
class UsbAPIWriteService : UsbWriteService("UsbAPIWriteService") {
|
||||||
val DD_BLOCKSIZE = 4096
|
// 512 * 32 bytes = USB max transfer size
|
||||||
|
val DD_BLOCKSIZE = 512 * 32 * 64 // 1 MB
|
||||||
|
|
||||||
class Action {
|
class Action {
|
||||||
val WRITE_IMAGE = "eu.depau.ddroid.action.API_WRITE_IMAGE"
|
val WRITE_IMAGE = "eu.depau.ddroid.action.API_WRITE_IMAGE"
|
||||||
|
|
Loading…
Reference in a new issue