1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

UE2 - UT2kX Pre-Caching, how it works. Implementing custom precaching.

Discussion in 'Programming' started by ROSoldier, Jul 24, 2016.

  1. ROSoldier

    ROSoldier New Member

    Joined:
    Feb 1, 2015
    Messages:
    28
    Likes Received:
    0
    Hello all.

    I have some basic Pre-Caching questions and I hope some of you might know the answers to them.

    1) I know that precaching is used to Exclusively to "store" Resources in RAM memory, in order to decrease loading time.
    Does that mean that Pre-Caching only reduces loading time, or It may also "speed up" the game during play?
    EXAMPLE: Lets say we have two vehicles, or some other objects (doesn't really matter) that are going to spawn during play. Each vehicle has one texture (skin).
    1st vehicle has its Material for its skin Pre-Cached.
    2nd vehicle is Dynamically Loading the Material for its skin.
    Question: Will it take longer to load and apply Vehicle 2's Material?

    2) In vanilla scenario, is the precaching only done before and/or level loading?
    Can the Precaching be initialized (manually done by custom code) done during actual play?
    Is there any use of precaching during game?
    Is any precaching used/done on the server at all ?

    3)I know that server packages are added during "level load". Lets say I add a texture package as a ServerPackage. Will I gain anything if I also pre-cache that server package?

    4) Is Pre-cached content interpreted by hardware differently than content that is Dynamically loaded?
    Wiki says: "pre-caching will load the data into the video memory..."
     

Share This Page