Skip to main content

News

Topic: Game Beginning (Read 10045 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: Game Beginning
Reply #15
Yeah, I already do all that stuff (reusing the surface, etc.) I would never even think of creating a new surface every frame, just the thought of that makes me cringe! (likely my C++ background talking here though)  Also, I use wordWrapText to pre-calculate the line breaks before even showing the box.  The main thing I was worried about was unfreed surfaces piling up over the long term, like after the game was running for several hours.  If the GC frees it along with the handle though, I'll stop worrying about it.  I guess I could always look at the Sphere source if I had to. :)
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub