Skip to main content
gamedev.net
🔒 Locked

adding a variable to a class

Started by daniel_i_l Aug 23, 2006 at 4:50 PM 1 replies 300+ views
Original Post
daniel_i_l
daniel_i_l
I have a class with quite a few (10-20) variables in it and this class is passed as referance a lot in the code. Now i added a bool variable to this class and suddenly the frame-rate was cut in half. what could this mean? Whats the problem? Thanks.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
mikeman
mikeman
If you read your post again, I think you'll agree with me that noone can even attempt to make a guess at this. The clues you give couldn't even be described as "vague". We know absolutely nothing about the class, or your code, or what languange you're using, or the system, or the configurations, or even what the program is. How could we say anything about the situation?
ToohrVyk
ToohrVyk
Does removing the variable speed the code back up? What does your profiler say about this?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.