I’m using structures for the majority of my project, and they are new to me. My question focuses largely on efficiency and performance. I wanted to know if there is a best practice for using structs? For every major actor I use there is a struct template associated with it that carries various properties that are later saved in JSON and then upon load they are processed by the project to load the level. They work very well but I want to make sure I’m not getting ahead of myself by putting too many variables into the structs.
Let’s say you have one struct with 10 variables in one struct with 40 variables. For each case, unreal engine is only looking for one variable within each struct - is either case more CPU intensive than the other?
Can a struct have a large quantity of variables within a board is at a better practice to break them up?