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 6592391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:32:55+00:00 2026-05-25T17:32:55+00:00

The game engine I am working with is too slow in the debug build

  • 0

The game engine I am working with is too slow in the debug build and is impossible to debug the game. One of the things I would like is for the compiler to inline small functions (especially in Vector/Matrix and container classes). This may or may not speed up the game in debug build. Before profiling heavily and trying to figure out bottlenecks I thought I would try this first as I would have to do minimal work and the results may be promising.

So, is there a way to get the Visual C++ compiler to inline functions in debug builds?

  • 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-05-25T17:32:56+00:00Added an answer on May 25, 2026 at 5:32 pm

    Project options -> C/C++ -> Optimization -> Inline Function Expansion. Turn this to /Ob2. Also make sure that Debug Information Format (under C/C++ -> General) isn’t set to /ZI (set it to /Zi instead if it is). Do this in your Debug configuration.

    In Release, inline function expansion is implied by other optimization settings, so even though by default all configurations say "Default" for the setting, the behavior is indeed different.

    http://msdn.microsoft.com/en-us/library/47238hez.aspx

    (original poster)
    I believe Debug builds should have inline expansion behavior the same as release; there’s really no reason not to.

    (editor)
    The main reason to not do this is that functions that do get inlined won’t show up at all when stepping through code in the debugger, resulting in "invisible" code.

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

Sidebar

Related Questions

I'm working on a small game engine. One of the features of it is
I'm working on a game engine in C++ and I have methods like setColour
I'm working on a game engine and I'm too much of a wuss to
I'm currently working on a small 2D game-engine in C++, but I am now
I'm working on a game engine, and one of the functions in the Texture
I'm working on a small game engine and I've encountered a problem. So far,
I wanted to create a cross-platform 2D game engine, and I would like to
I am working on a small game and game engine in C++ using DirectX.
I'm working on a memory pool for a small game engine. The main use
I'm working on a simple 2D game engine in Java, and having no trouble

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.