Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:03:38+00:00 2026-06-07T19:03:38+00:00

In my game, there are many things checked and often the indexes are out

  • 0

In my game, there are many things checked and often the indexes are out of bounds, and it’s usually ok if sometimes things are not drawn or checked for. Currently my code is easy enough to read, though when debugging, the game loses a frame or two because of the exceptions that are being logged. It works fine outside the VS though. When I tried to avoid exceptional situations using lots and lots of if statements, it greatly decreased code readability and removed the low fps loss. I wonder if it has any other effects.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:03:40+00:00Added an answer on June 7, 2026 at 7:03 pm

    Throwing exceptions is very resource intensive- it is vastly faster to use if/then statements or other “normal” flow control.

    Exceptions are mainly expensive because generating the Exception instance requires a stack walk has to be performed to figure out where the exception was thrown (the stack trace). It also creates extra load for the Garbage Collector, and is considered very poor design to use exceptions outside of exceptional situations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Over the years I've often asked myself why game developers place many small images
In my Rails application, there are many games, and each game has it's own
First off, I'm programming a game. Currently in the render function there are two
I have developed an AJAX based game where there is a bug caused (very
Are there any game engines for iPhone?
I'm trying to implement invitations with Game Center and there's one thing that i
There is a game called Verbosity (it's a Game With A Purpose) and it's
There is this interesting game, that has numbers in a grid, where each number
There is a dice game in android games that when you move up and
Are there any good technical comparisons available between the various game development options available.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.