x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Track assets loaded inside the game

I am trying to track the memory allocated for every resource that is being loaded inside the game. For example, say I have ten meshes. Two of them used by the player. Five used by AI characters, and remaining used by environment. Now I want to differentiate these ten meshes into three different categories based on whoever is using them. I know how much memory is being allocated when their constructor is being called (and because of the constructor, I know which mesh is used by which class). But the meshes are loaded later using FLinkerLoad. At this point, I am not able to track which mesh is being used by whom. I have the Mesh pointer (when Character class constructor creates it), now how to track the memory it further loads while loading the asset?

Product Version: UE 4.20
Tags:
more ▼

asked Jul 27 '18 at 09:39 PM in C++ Programming

avatar image

DarkNemesis
13 2 3 7

avatar image deric.an Feb 20 '19 at 08:16 AM

i also have the similar question, when the asset pointed by hard pointer was loaded in a packaged game?

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first
more ▼

answered Jul 28 '18 at 12:16 AM

avatar image

Shadowriver
35.7k 925 168 1104

avatar image DarkNemesis Jul 30 '18 at 07:25 PM

I have a few questions on this: 1. What is the difference between FAssetAddedEvent and FInMemoryAssetCreatedEvent? 2. Also, isn't AssetRegistry just for editor builds? I want something like this for non-editor builds. 3. Suppose this method works, and I have a callback for OnAssetAdded. But how do I identify that this asset is being used by this class? And how do I query how much memory is it using?

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question