These are chat archives for highfidelity/hifi

30th
Oct 2014
Joe Large [Omega Heron]
@OmegaHeron
Oct 30 2014 01:06
@ctrlaltdavid Looking at the code so far and QT Docs I'm not even sure it's using the cache...
David Rowe
@ctrlaltdavid
Oct 30 2014 01:38
@OmegaHeron Heh, it is buried in there and is indeed using it, or at least Interface is. I've increased Interface's cache to 10GB in https://worklist.net/20152 which is currently in QA. Haven't touched the assignment client cache size though.
Joe Large [Omega Heron]
@OmegaHeron
Oct 30 2014 01:48
@ctrlaltdavid if it's not too much trouble, which file in assignment set is using it? I'd like to add some monitors to it to return hit:miss ratio.
To clarify - I see it setting up cache in assignment, but the QNetwork call doesn't seem to be setting the param to prefer cache to network anywhere I've found, yet.
I'm grepping the entire assignment tree to see if I can find it now...
David Rowe
@ctrlaltdavid
Oct 30 2014 02:05
@OmegaHeron See Agent.cpp circa line 190: cache->setCacheDirectory(!cachePath.isEmpty() ? cachePath : "agentCache"); ... In front of this line insert cache->setMaximumCacheSize(MAXIMUM_CACHE_SIZE); ... Where MAXIMUM_CACHE_SIZE is some number of your choice. ... In theory that should set the Assignment client's cache size, assuming that it is actually used of course.
Joe Large [Omega Heron]
@OmegaHeron
Oct 30 2014 02:05
Also if the cache is ultimately increased/used in assignment-client, please don't go 10GB :) I'm running on cloud servers with barely that much space per droplet.
@ctrlaltdavid Thanks - checking that now.
David Rowe
@ctrlaltdavid
Oct 30 2014 02:06
Don't worry, I'm not touching the Assignment client's cache size.
Joe Large [Omega Heron]
@OmegaHeron
Oct 30 2014 02:07
cool
compared to (presumably) how it's done for Interface I don't see the accompanying call to set the prefer cache over network in assignment. Digging/studying more.
David Rowe
@ctrlaltdavid
Oct 30 2014 02:13
I haven't checked at all but perhaps Assignment client is using ResourceCache.cpp, in which case the preference is set in Resource::Resource().
Joe Large [Omega Heron]
@OmegaHeron
Oct 30 2014 02:15
yeah - that's the part I'm studying now as that's only place I found the property to cache being set
actually I'm almost certain it's not caching in AC on linux - my setup has it jailed to a specific directory and there's no cache files there after being up a considerable time.
Ryan Huffman
@huffman
Oct 30 2014 21:02
@murillodigital Hi Leo - Do you know if the Windows builds include SDL2? @ctrlaltdavid was having issues with using an Xbox controller which relies on SDL2.
David Rowe
@ctrlaltdavid
Oct 30 2014 21:04
@murillodigital Interface Windows installer includes SDL.dll version 1.2.14 - looks like an old version.
Leonardo Murillo
@murillodigital
Oct 30 2014 21:05
hey guys, yeah SDL is included for priovr joystick support
thats the only sdl I have included in the past, will add SDL2
Thijs Wenker
@thoys
Oct 30 2014 21:05
@murillodigital you can add sdl2 to %HIFI_LIB_DIR%/sdl2 , i made a patch for that a week ago
Leonardo Murillo
@murillodigital
Oct 30 2014 21:05
for these recently introduce device
*introduced
sure @thoys
Ryan Huffman
@huffman
Oct 30 2014 21:06
@murillodigital Great, thanks!
David Rowe
@ctrlaltdavid
Oct 30 2014 21:07
Maybe there should be a SDL2 directory and instructions in HiFi\interface\external?