Homebrew RELEASE Thinfoil - stripped down fork of Tinfoil

uyjulian

Homebrewer
OP
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,873
Country
United States
Maybe 400mb buffer will increase the speed?

I might release versions with threads just for the heck of it.

I'm satisfied with my work right now since it is stable. I'm not really looking for speed since I can do other things anyway.
 
Last edited by uyjulian,
  • Like
Reactions: GnK23

designgears

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
291
Trophies
0
XP
671
Country
United States
Maybe 400mb buffer will increase the speed?

I might release versions with threads just for the heck of it.

I'm satisfied with my work right now since it is stable. I'm not really looking for speed since I can do other things anyway.

6a0120a85dcdae970b0128776ff992970c-pi.png


Jokes aside, assuming you pulled the single threaded code from pabdulin's github, revert those bits and you'd get the speed back.
 
Last edited by designgears,

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
683
Trophies
1
XP
2,460
Country
Russia
I already wrote many times that crashes caused by absence of synchronization in threaded code. Infinite loops in waiting for non-atomic vars is not a sync!
 
  • Like
Reactions: GnK23

GnK23

Well-Known Member
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
I already wrote many times that crashes caused by absence of synchronization in threaded code. Infinite loops in waiting for non-atomic vars is not a sync!
So the single thread really helps preventing crashes. Nice! :yayswitch: This proves a lot.
 

UnT7oh

Well-Known Member
Newcomer
Joined
Mar 18, 2017
Messages
88
Trophies
0
XP
377
Country
United States
So the single thread really helps preventing crashes. Nice! :yayswitch: This proves a lot.

I don't know what build of tinfoil you have been using but everyone has been using this one for a year and it never crashes, never has a corrupt installation and is fast: https://github.com/satelliteseeker/Tinfoil/releases/tag/v0.2.1-USB-fix

Of course it can not be compiled with libnx 2.5 in its current state so it will stop working when Atmosphere removes the temporary hid-mitm in the future.
 
  • Like
Reactions: Assasin1990

GnK23

Well-Known Member
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
I don't know what build of tinfoil you have been using but everyone has been using this one for a year and it never crashes, never has a corrupt installation and is fast: https://github.com/satelliteseeker/Tinfoil/releases/tag/v0.2.1-USB-fix

Of course it can not be compiled with libnx 2.5 in its current state so it will stop working when Atmosphere removes the temporary hid-mitm in the future.
I have tested it extensively by installing dlc and updates. We have another thread about hid-mitm and the crashing issue. It was already resolved that's why we have the thinfoil.
 

UnT7oh

Well-Known Member
Newcomer
Joined
Mar 18, 2017
Messages
88
Trophies
0
XP
377
Country
United States
I have tested it extensively by installing dlc and updates. We have another thread about hid-mitm and the crashing issue. It was already resolved that's why we have the thinfoil.

No, you seem to have no idea what you're talking about.
 

m4xw

Ancient Deity
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
i’m confused, you seem concerned about min-maxing speed by tuning the buffer sizes, but then you go and remove threading which cuts the install speed in half, and you call it a feature?

you took this from the fastest usb installer, and brought it down to goldleaf speeds.
This matters only when reading from SD and writing to NAND.
FS internally has all access to read/write for a given SDMMC device mutex locked anyway.
If its only about that, there should be no real difference compared to the old ver on any emunand impl.
 
  • Like
Reactions: SaulFemm

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
This matters only when reading from SD and writing to NAND.
FS internally has all access to read/write for a given SDMMC device mutex locked anyway.
If its only about that, there should be no real difference compared to the old ver on any emunand impl.

It is not about internal synchronization. It is about reads blocking writes and vice versa. any writing downtime while waiting for a usb read to complete cannot be recovered later, it manifests as slower transfer speed.
 
  • Like
Reactions: designgears

m4xw

Ancient Deity
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
It is not about internal synchronization. It is about reads blocking writes and vice versa. any writing downtime while waiting for a usb read to complete cannot be recovered later, it manifests as slower transfer speed.
Oh yea, didn't see this was about USB.
 
  • Like
Reactions: designgears

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,858
Trophies
2
XP
28,889
Country
United Kingdom
Do you have a thinfoil build with unmodified networking, so I can use it with NS-USBloader? Would appreciate it if you do, save me the effort of fitting it together myself :)
 

jammybudga777

Well-Known Member
Member
Joined
Aug 23, 2013
Messages
2,284
Trophies
1
Age
37
XP
2,193
Country
using aluminumfoil on tinfoil and tried goldleaf it just hangs. never had problems before now. even tried quarty but always hangs when its about to install the nsp
 
Last edited by jammybudga777,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: I hate myself