Performance Difference : Tables vs Game Attributes

JoeBJoeB Member Posts: 160
Hi, I was just wondering if there is a significant performance difference to using Tables instead of Game attributes. My game right now uses both, but there are 2x more game atts than table information. My Game atts are mainly boolean.

Anyway, does anyone know if there will be a noticeable performance differences between using tables vs game attributes? Thanks

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Tables are dormant variables which means they are not part of the code cycle scan. The more game level variables one has the longer the code needs to complete a scan cycle. Tables are far more efficient for calling data as they will be part of the scan based on a rule in an actor as game level variables whether being used or not will always be scanned.
  • Yes Please GamesYes Please Games Member, PRO Posts: 21
    Hi FryingBacon, does this mean we should convert all game attributes into table values to improve performance of the game?
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    @Ddpchief, you can't really convert all game attributes into table values because you need to put the table values into game attributes to be able to check them in rules.

    I know the nightly builds had some table improvements added to them, like looping through tables but I don't know if they've made it possible to check table cells in a rule. I haven't checked the nightly builds myself.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    In the nighty version we now have expression to expression so we can check table cell values. I wouldn't go exclusively with tables. You need to understand what's happening during the scan. Some variables you want to be scanned constantly so the respond quickly. People worry too much about this optimization stuff and most of it ip makes no sense. It's all about integrated code that is the only way to make optimized code. See my video on what code intergration is.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Expression to expression sounds awesome! :)
  • Yes Please GamesYes Please Games Member, PRO Posts: 21
    Thanks KevinCross and FBS. Game still running slow (erratic FPS) after doing almost all of the 31 optimization tips in another thread, so wanted to try the table storage instead of game attribute :). FBS, can you share the link to your code integration video?
  • Yes Please GamesYes Please Games Member, PRO Posts: 21
    FBS, is this the video?
Sign In or Register to comment.