Diamond Arrow

  • Home
  • News
  • Blog
  • About Me
  • Diamond Arrow

  • Home
  • News
  • Blog
  • About Me

Using an interface can allocate memory

Posted on May 2, 2017 at 9:49 AM.

Written by Adam Scura

In game development we often want to reduce the amount of memory that is allocated on the heap. One technique is to use value types like structs that can be stored on the stack instead of the heap. But surprisingly the simple act of referencing a struct by an interface can lead to memory allocations and poor performance.

Read More…

Tags: c#, optimization, performance, programming


Recent Posts
  • Using an interface can allocate memory
  • GM Tip: Room Descriptions
  • Why all game designers should play D&D
  • Git is Friend, Not Food
  • Top 10 Resharper Techniques
Categories
  • Blog
  • News
  • Tools
Archives
  • May 2017
  • July 2016
  • June 2016
  • March 2016
  • December 2014
Copyright © Adam Scura 2014-2015