Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zarcel

Pages: [1]
1
General / Help me optimize my game
« on: March 27, 2011, 12:00:35 pm »
Indeed it helped, but what about these dlls ?

2
General / Help me optimize my game
« on: March 27, 2011, 10:26:07 am »
Hi!
I have finished my first game - pong. Ofcourse I wasn't paying attention to things like memory usage etc, because I wanted t learn basic's about game programming. Anyway now I wan't to change it. My pong weight is 1.1 MB when compiled (only 200 lines of code!). And the worst thing is that I have to add sfml dlls to it. Is there any other way doing it ? Because with all dlls it weights is aroud 20 MB~.

Second thing is Ram usage. It takes 8 MB of ram. How to make it lower ? Limit FPS ?

Btw I have already checked all optimize options in compiler settings.

3
Graphics / Different outputs for GetPosition
« on: March 26, 2011, 03:24:41 pm »
Yeah, you are right, I just figured it out by myself, but anyway thx for anwser. As for debug statements I will probably have to delete them.

4
Graphics / Different outputs for GetPosition
« on: March 26, 2011, 02:19:50 pm »
Hi!
I'm newbie at gamedev and I have choosen pong to be my first game. I made simple display of Get.Position for 2 spirites (rectangles) and one shape created using helper class(circle).

I place all things in center  of x and in different y's as you can imagine. My problem is that GetPosition for rect's gives me 375 and its correct, while circle gives me 10. What should i do ?

Ofc I mean x variable all the time.

And since I don't wanna start another topic. My performance really dropped down since I put that debug info into game loop. I did it using cout. any ideas to fix it ?

5
Graphics / How to display framerate and make some inputs
« on: May 30, 2010, 02:22:34 pm »
Heh shame on my i didn't figure it out by myself. Thanks dude.

Just in case somebody will have the same problem.
You have to set string stream to empty after every frame.

Like this:

Code: [Select]
ss.str("");

6
Graphics / How to display framerate and make some inputs
« on: May 30, 2010, 01:18:28 pm »
Hey guy's!

I have 2 questions for now.

1. How can I display current framerate ? I know how to calc it and I want to display it by passing framerate variable to String::setText() func. Obviously it doesn't work because types don't match. Is there any other way to display it or maybe I have just to cast it ? There should be some convert func as for me :P

2. How can I make some input field's such as text forms ? I guess by using some gui, but I have to be sure.

Pages: [1]
anything