Jump to content
  • Advertisement
Sign in to follow this  
jwezorek

C++ signals and slots libraries for games

This topic is 529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Which is best?

I read in this old post and elsewhere that boost::signals is shockingly slow so that seems out.

Does anyone know if Sneftel's code from the above link has been updated anywhere? (the link is 10 years old).

Stackoverflow also mentions  libsigc++, but again that post is kind of old.

Thoughts? Are there other ones to consider?

Edited by jwezorek

Share this post


Link to post
Share on other sites
Advertisement

There's "A lightweight signals and slots implementation.":

https://github.com/pbhogan/Signals

I'm using it myself, never measured performance though - its fast enough for my UI system. Shameless plug: I actually wrote an updated version with less code, that is simpler to use (SignalX merged into one class with var-templates, helper functions like connectSignals), which you can find here, if you can use C++11:

https://www.gamedev.net/index.php?app=core&module=attach&section=attach&attach_id=24237

Share this post


Link to post
Share on other sites

I'll throw in my vote for "A lightweight signals and slots implementation." It's served me very well in the past.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!