Page 2 of 2
Re: Signal/Slot Library Suggestion?
Posted: Sat Jul 09, 2011 2:00 am
by Ginto8
XianForce wrote:QT SIGNAL and QT SLOT... That's just a signal/slot implementation, isn't it...?
That's correct. Qt has a signal/slot implementation that it gets to work via a separate pre-processor and some fancy C preprocessor macros. Qt is a good library, but I'm curious the effect of using Qt's signals/slots on the overall size and performance of a program.
Re: Signal/Slot Library Suggestion?
Posted: Sat Jul 09, 2011 8:14 am
by XianForce
Ginto8 wrote:XianForce wrote:QT SIGNAL and QT SLOT... That's just a signal/slot implementation, isn't it...?
That's correct. Qt has a signal/slot implementation that it gets to work via a separate pre-processor and some fancy C preprocessor macros. Qt is a good library, but I'm curious the effect of using Qt's signals/slots on the overall size and performance of a program.
Yeah, it just confuses me because Falco said:
But we aren't doing any signal/slots bullshit to implement this.
Then referenced QT SIGNAL and QT SLOT...
Re: Signal/Slot Library Suggestion?
Posted: Sat Jul 09, 2011 10:45 am
by Falco Girgis
I was drawing an analogy to the fact that we implemented the exact same functionality with a simple abstract base class and some virtual methods...
Re: Signal/Slot Library Suggestion?
Posted: Sat Jul 09, 2011 10:47 am
by Falco Girgis
Ginto8 wrote:XianForce wrote:QT SIGNAL and QT SLOT... That's just a signal/slot implementation, isn't it...?
That's correct. Qt has a signal/slot implementation that it gets to work via a separate pre-processor and some fancy C preprocessor macros. Qt is a good library, but I'm curious the effect of using Qt's signals/slots on the overall size and performance of a program.
Probably pretty fucking hefty. It's more than worth it, when every class within a GUI application uses the paradigm, but for a single subsystem, as has been proposed here, it would be a ridiculous amount of overhead (oh, and now you get to use an additional layer of preprocessing for one class).
Re: Signal/Slot Library Suggestion?
Posted: Sat Jul 09, 2011 10:54 am
by XianForce
GyroVorbis wrote:I was drawing an analogy to the fact that we implemented the exact same functionality with a simple abstract base class and some virtual methods...
Okay haha. I thought for a second you were saying that you used QT SIGNAL and QT SLOT to call those methods, and I was a little confused for a second. Thanks for the clarification
.