Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Descriptive Error Handling

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
22 replies to this topic

#21 Ectara   Members   

3097
Like
0Likes
Like

Posted 11 February 2014 - 10:45 PM


If they are implemented in code there is a runtime cost (even if you don't call an exception) is incurred every time a try, catch, or finally is placed in your code. It also adds a small cost to every function call's prologue. Based on numbers I've read, the cost is about a 6% penalty globally.


However, you must pay for the potential to unwind the stack and RTTI, whether you use it or not.

We're on the same page.

 

I'm ready to declare this discussion finished. I don't think there's any new information to be had, and I was already well versed in the pros and cons of C++ exceptions before I started this thread. I appreciate everyone's responses.



#22 Hodgman   Moderators   

50619
Like
2Likes
Like

Posted 11 February 2014 - 11:19 PM

I'm still not a fan of C++ exceptions, but for the record, the "passive" cost of them being there is much lower when compiling for x86-64.



#23 frob   Moderators   

44029
Like
0Likes
Like

Posted 12 February 2014 - 05:08 PM

I'm still not a fan of C++ exceptions, but for the record, the "passive" cost of them being there is much lower when compiling for x86-64.

 

I look forward to the day when all my PC programs can be compiled for 64-bit extensions. Everything is so much better.

 

Right now we dual-build 32-bit and 64-bit versions for in-house tools and various utilities. The combination of extra registers and guaranteed SIMD functionality seem to make the optimizer so much happier. Sadly we haven't reached the day when the shipped binaries are 64-bit, and the cost for QA on both is still prohibitive. Someday...


Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.