Jump to content
  • entries
    422
  • comments
    1540
  • views
    490592

Yay

Sign in to follow this  
jollyjeffers

144 views

So I finally managed to transition my codebase (all 35,000 lines and 110 files) from narrow to wide characters. Wasn't too painful I suppose, and there are a few odd little things left to do... but I was happy enough to hit the "play" button and see:


(Click To Enlarge)


Curiously though, I've managed to cause 2 interesting problems:
1 The program no longer compiles under the "Release" profile.
2 I've now got 2000 lines of (ERROR) messages from Direct3D.

And I've also introduced an annoying slow-down such that the game is no longer real-time when debugging information is enabled. Writing all the text to a log-file (+unicode conversion) is really hurting the performance [headshake]

Jack
Sign in to follow this  


3 Comments


Recommended Comments

If you're certain writing to a text-file is what's slowing you down (i.e. profiler said so), buffering could help tremendously.

Share this comment


Link to comment
Yeah, it was definitely writing the text file... I completely hacked it together along the lines of "get it right then get it tight" [smile]

Profiling the "bad" one gave me ~45ms/entry ([oh]) and the improved one I put in this morning costs a mere ~3ms/entry [grin]

Jack

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!