mirror of
https://github.com/ole00/afterburner.git
synced 2024-06-18 04:29:28 +00:00
PC app: JTAG player - decrease initial over-buffering
This change improves XSVF upload reliability.
This commit is contained in:
parent
cce891c513
commit
316d103456
|
@ -1334,7 +1334,7 @@ static int playJtagFile(char* label, int fSize, int vpp, int showProgress) {
|
||||||
chunkSize = feedRequest;
|
chunkSize = feedRequest;
|
||||||
// make the initial chunk big so the data are buffered by the OS
|
// make the initial chunk big so the data are buffered by the OS
|
||||||
if (sendPos == 0) {
|
if (sendPos == 0) {
|
||||||
chunkSize *= 4;
|
chunkSize *= 2;
|
||||||
if (chunkSize > fSize) {
|
if (chunkSize > fSize) {
|
||||||
chunkSize = fSize;
|
chunkSize = fSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user