View Single Post
Old 11-15-2012, 10:50 PM   #2
Ide
Senior Member
 
Join Date: Feb 2006
Location: Seattle
Posts: 361
Ide will become famous soon enoughIde will become famous soon enough
Re: Event-based with threads instead of game loop

Welcome to TMS koteko, good to have you here.

I've seen some muds use this approach. I think it wasn't used much in the past for performance reasons as you imply, but if your profiling shows acceptable resource use I don't see why you couldn't use it now.

For testing I'd advise you to write or find some kind of framework that'll throw a lot of connections and commands at the server so you can profile properly.

I've heard people say that a design like this makes the code a little more straightforward to write and understand, which can't hurt.
Ide is offline   Reply With Quote