« Notes on Fiasco | Main | Chrome Native Client Game Loop »

August 08, 2011



I had some success with forcing the cache to reload by using the same trick designers use to flush css/js out of the cache - add '?v=' followed by an incrementing version number to the URL.

eg, in the NMF:

{"url": "SyNaCl_x86_64.nexe?v=5"}

I modded site_tools/nacl_tools.py to make scons do this automatically, in AllNaClModules :

'x86-32': '%s_x86_32.nexe?v=%i' % (module_name, time.time())

... well, you get the picture. Limited testing online seems to show Chrome reloading the NEXEs if the suffix changes and loading from the cache if they don't (eg. if I just touch the nmf and not the versioning numbers)

To be fair I haven't had many problems with it not recognising new builds, though. Yet.

I have only just started dabbling with NaCl but am quite hooked. A couple of ramblings here - http://tinyurl.com/synacl - but suspect most of it you've already encountered. Will pass on the --jobs # tip, has sped my builds up a great deal too!

The comments to this entry are closed.

Jamie's Bragging Rights

  • Spider-Man 2
    The best superhero games of all time Game Informer
    Top five games of all time Yahtzee Croshaw
    Top five superhero games of all time MSNBC
    Top 100 PS2 games of all time Official Playstation 2 Magazine
    1001 Games You Must Play Before You Die Nomination for Excellence in Gameplay Engineering Academy of Interactive Arts & Sciences
  • Schizoid
    Penny Arcade PAX 10 Award
    Nominated for XBLA Best Original Game
    Nominated for XBLA Best Co-Op Game