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 - krwoong

Pages: [1]
1
Graphics / drawing sprite is very slow..
« on: March 02, 2012, 02:35:06 pm »
yes i run at release mode.


OpenGL app in slowly too;;


I don't know reason;;


I use "Gefore 9400GT"

2
Graphics / drawing sprite is very slow..
« on: March 01, 2012, 11:48:07 am »
Bandicam program has "fps checker".

i was not recording~

i want to upload image.

but i can't upload...;;

3
Graphics / drawing sprite is very slow..
« on: March 01, 2012, 05:34:58 am »
I try to upgrade to SFML 2.0.

but fps is also "20"...  :(

4
Graphics / drawing sprite is very slow..
« on: March 01, 2012, 04:55:15 am »
umm..

I use "NVIDIA GeForce 9400 GT"

i try to upgrade to sfml 2.0.

thank you.  :o

5
Graphics / drawing sprite is very slow..
« on: March 01, 2012, 02:26:19 am »
hellow!

i'm korean ^^;

I can't speak English very well yet.


Code: [Select]

#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#pragma comment(lib, "sfml-system-s.lib")
#pragma comment(lib, "sfml-window-s.lib")
#pragma comment(lib, "sfml-graphics-s.lib")

int main()
{
sf::RenderWindow App(sf::VideoMode(317, 528, 32), "GANDI", sf::Style::Close);



sf::Image img;
img.LoadFromFile("korea.png");


sf::Sprite spr;
spr.SetImage(img);
spr.SetPosition(0,0);


while (App.IsOpened())
{
static int mvx, mvy;
sf::Event Event;
while (App.GetEvent(Event))
{
if (Event.Type == sf::Event::Closed)
App.Close();

if (Event.Type == sf::Event::KeyPressed)
{
if (Event.Key.Code == sf::Key::F12)
{
sf::Image Screen = App.Capture();
Screen.SaveToFile("screenshot.png");
}
}

if(Event.Type == sf::Event::MouseButtonReleased)
{
if(Event.MouseButton.Button == sf::Mouse::Left)
{
}
}

if(Event.Type == sf::Event::MouseMoved)
{
mvx = Event.MouseMove.X;
mvy = Event.MouseMove.Y;
}
}

App.Clear(sf::Color(0, 0, 0));

App.Draw(spr);

App.Display();
}

return EXIT_SUCCESS;
}



I want to draw image. so I found it in tutorial.

Code: [Select]
sf::Image img;
img.LoadFromFile("korea.png");
sf::Sprite spr;
spr.SetImage(img);


and, App.Draw(spr)

i'm not using App.SetFramerateLimit(60).

but, when i run program, fps is "20"!



when delete App.Draw(spr), fps is "900~1000"!...

I don't know what to do..



please help me. :(



I check fps, by "bandicam"

Pages: [1]