Terraria world generation

i have a terrarian style terrain engine but it runs extremly slow. my engine only renders whats on screen. there are individual blocks being spawn. so my question is, how can i get my frame rate as high as in terraria? btw my engine is 2d

  • thanks