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

Pages: [1]
1
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: January 12, 2010, 10:05:10 pm »
I have the source of the problem but unfortunately this is a problem that will not be fixed.

This is not a SFML problem, just to be clear. It's a mixture of Microsoft, ATI and Fujitsu.

> Mobility 2300 GPU's are legacy and not supported for Windows 7.

This is a reply from a mod over on the ATI GAME forums.

2
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: January 05, 2010, 01:15:48 am »
Back home, at my desktop.

W7 64bit with an NVIDIA Card, had the same issues as before and then I installed the latest drivers from the NVIDIA site. Works like a charm.

So it could be issues on Laptops with W7 64bit and ATI Cards.

Sounds like fun.

I also tried other SFML projects and it's the same.

3
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: January 01, 2010, 12:23:33 am »
Are you two using ATI cards?

4
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: December 31, 2009, 02:37:35 am »
I tried a compiled version of my app on another Windows 7 machine and it worked perfectly there.

That machine was a 32bit W7 machine though, and mine is 64bit W7.

Then I tried it on another W7 machine that is 64 bit and I had the same slowdown issue as I had before.

So there is something going on in W7 64bit. Be it SFML or OpenGL.

5
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: December 30, 2009, 03:04:45 am »
Just played Quake 2 at a lan in OpenGL and it works perfectly. So nothing wrong with the OpenGL setup.

So I'm wondering if I should try SFML 2, but the thing is, that this is not a project I can run on a preview build.

6
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: December 27, 2009, 01:43:04 am »
There are no updated display drivers for my laptop. So it seems I'm out of luck.

Probably going to switch to Allegro then or something. It's a damn shame.

7
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: December 27, 2009, 12:07:09 am »
I can't try another OS at the moment, but lets assume that this is a problem in Windows 7. Do you know what I could try to fix this problem?

8
Graphics / How do I do backgrounds? [Not Relevant anymore]
« on: December 26, 2009, 11:35:39 pm »
This is baffling me. (I'm using Windows 7 btw)

I have a few sprites that I walk around the screen, this works very smooth and well.

As soon as I try to create some sort of a background sprite, everything slows down to a crawl.

I've tried two ways, one was to have a 800x600 image as a sprite and draw that every time (the image was only 11KB), but the whole program became very slow.

Then I tried the loop in a loop way to tile 50x50 images, and still this is as slow as the first method.

So how do I proceed?

9
Graphics / Freeing a sprite from memory
« on: November 15, 2009, 05:55:23 pm »
Thanks for the reply guys.

I've changed the code into a list (since it's erase it fast) and it's working great now, it only allocates memory to a certain max and then I have the list erasing the items that are outside the screen.

10
Graphics / Freeing a sprite from memory
« on: November 15, 2009, 03:51:32 am »
I saw another post that stated that "You have nothing to do except properly managing the lifetime of your instances."

Since I'm new with SFML I'm wondering how I would go by doing this.

I have a vector of missiles.

Code: [Select]

struct missile
{
sf::Sprite Sprite;
float angle;
};

std::vector<missile> vMissiles;

vMissiles.push_back(Missile);


This all works fine and dandy, but what I'm worried about is when the missile exits the screen, I want to free it from memory. I'm seeing the executable grow in memory for each shot I do.

Currently I'm just not drawing them anymore, but what else can I do?

Pages: [1]