mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-21 21:49:15 +01:00
[SC64][SW] Adjust buffer sizes in sc64deployer to tune for maximum transfer speed
This commit is contained in:
parent
71cef2cd6c
commit
631f140c48
@ -486,7 +486,7 @@ impl FtdiDevice {
|
|||||||
wrapper.set_module_detach_mode(ModuleDetachMode::AutoDetachReattach);
|
wrapper.set_module_detach_mode(ModuleDetachMode::AutoDetachReattach);
|
||||||
wrapper.set_interface(InterfaceIndex::A)?;
|
wrapper.set_interface(InterfaceIndex::A)?;
|
||||||
|
|
||||||
const CHUNK_SIZE: usize = 2 * 1024 * 1024;
|
const CHUNK_SIZE: usize = 1 * 1024 * 1024;
|
||||||
|
|
||||||
wrapper.read_data_set_chunksize(CHUNK_SIZE)?;
|
wrapper.read_data_set_chunksize(CHUNK_SIZE)?;
|
||||||
wrapper.write_data_set_chunksize(CHUNK_SIZE)?;
|
wrapper.write_data_set_chunksize(CHUNK_SIZE)?;
|
||||||
|
@ -101,7 +101,7 @@ const ISV_BUFFER_LENGTH: usize = 64 * 1024;
|
|||||||
|
|
||||||
pub const MEMORY_LENGTH: usize = 0x0500_2980;
|
pub const MEMORY_LENGTH: usize = 0x0500_2980;
|
||||||
|
|
||||||
const MEMORY_CHUNK_LENGTH: usize = 1 * 1024 * 1024;
|
const MEMORY_CHUNK_LENGTH: usize = 8 * 1024 * 1024;
|
||||||
|
|
||||||
impl SC64 {
|
impl SC64 {
|
||||||
fn command_identifier_get(&mut self) -> Result<[u8; 4], Error> {
|
fn command_identifier_get(&mut self) -> Result<[u8; 4], Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user