Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ramdrive for fast level loading.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 97

PostPosted: Wed Apr 03, 2013 7:57 pm    Post subject: Ramdrive for fast level loading. Reply with quote

Hey, I've been playing with the concept of copying maps to ram so that they load faster. It sucks to be left waiting for the next wave respawn in a team game.

I added this line to my fstab.

none /mnt/ramdrive ramfs defaults 0 0

Is there some way to verify that this is actually storing data in ram, and if so, is there a way to test read speeds on this data?

Thanks for your input.

:idea:

That verification done, what's the best way to load maps and resources into ram on startup? I'm thinking, have a script copy the files over, then rename the original resources and create a symlink to them in ram for transparent operation.

What then to do on shutdown? Remove the symlinks and give the files their original names again?

All this accomplished, what's a good way to acurately time level loads, to see how much of an effect this has?
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2303
Location: UK

PostPosted: Thu Apr 04, 2013 3:53 pm    Post subject: Reply with quote

Linux already uses RAM for disk cache. Using a standard readahead tool like e4rat would work better.
Back to top
View user's profile Send private message
koopdi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2011
Posts: 97

PostPosted: Thu Apr 04, 2013 7:38 pm    Post subject: Reply with quote

Without googling e4rat or readahead tool, I think I understand what you're saying.

Use the OS's built in ability to cash things to RAM and explicitly call this on large files that you may need loaded at a moments notice...right, that sounds way more elegant - thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum