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

Pages: 1 ... 28 29 [30] 31 32 ... 40
436
Graphics / Possible memory leak
« on: February 29, 2012, 12:27:47 pm »
Its really weird, I did comment all my code by parts, just until i could narrow the leak down to one function..

Commenting those lines does solve it, and the code im running is as simple as it gets in my framework, nothing special is happening in it.

However a simple sfml snippet works..

I did have a Nvidia crash yesterday. In one of the runs when i was tracking the issue, the memory consumption increased suddenly by a few MB and i got a black screen. After that, I could see a error:

Nvidia graphics driver connection with the software was lost, therefore the application must be closed. (Something like this)

And then everything went back to normal..

I bet its related to initializing other libraries too, but I need more testing and I can't right this time :)

437
Graphics / Possible memory leak
« on: February 29, 2012, 03:23:49 am »
empty, as i was just looking for the problem..

438
SFML projects / SFML Light System - Let There Be Light
« on: February 29, 2012, 02:35:47 am »
Your idea is indeed nice!

I was thinking of handling this by creating a utility class, a Shape extended.

That would be a collection of sf::Shapes, to allow concave shapes, or simply sets of them..

This would not be a bad idea because it could generate ConvexHulls, Box2D multi-fixtured bodies as well as rendering sf::Shapes..

439
Graphics / Possible memory leak
« on: February 29, 2012, 02:33:32 am »
Hello,

Recently I noticed a memory leak in my applications, so I tried to track it down and I think there is something wrong with two SFML functions.

So, my applications were simply ALWAYS allocating memory. Like 4KB/s, by watching the task manager.

I started to look for the problem, and i narrowed it down to this piece of code:

Code: [Select]
if(myWindow && activeDrawing){
myWindow->SetActive(true);
myWindow->Clear(clearColor);
onRender();
myWindow->Display();
}


That is my "render loop". If i comment those 4 lines,the memory does not increase at all.

Otherwise, it goes nuts. Clear() doesn't seem to do harm, however, Display() is consuming the most. SetActive() is also consuming memory from time to time, but way less than Display().

Can you please discuss this?

EDIT: I was unable to reproduce the problem with a minimal application, therefore i don't really understand why that couple of functions are having that effect while commenting them actually works, in the context of the other app.

440
Window / Unknown unrepairable error LNK
« on: February 28, 2012, 01:44:26 pm »
Probably missing the libraries between debug and release..

441
SFML projects / SFML Light System - Let There Be Light
« on: February 28, 2012, 01:17:38 pm »
Thanks Ockogonal for the support as well!

I've updated all my stuff to VS2010 now, it seems to be fine :)

Now its time to implement everything into my own scene :)

One question, ConvexHulls are the only thing i should use to make the shadow casting shapes right?

442
SFML projects / SFML Light System - Let There Be Light
« on: February 25, 2012, 02:51:16 am »
I really enjoyed your code, I think I will just put this deep in the Parabola Engine!

Would you mind if I use your code, with possible modifications, even for redistributing later? You get credit for it anyway!


Question, I am using Visual Studio 2008 and while trying to compile your code, the compiler actually can't find unique_ptr. I guess I don't have the C++11 ready in my compiler? What do you advice?

Thanks in advance.

443
General / How to get real mouse coordinates
« on: February 18, 2012, 08:37:15 am »
Hint: the window has a function to convert local mouse coordinates to global ones according to the current view.

enjoy!

444
General discussions / And for my birthday I wish...
« on: February 14, 2012, 06:07:03 am »
Happy birthday man!

Not wishing to bore the hell out of Laurent, but I backup that name change thing! :)

As a matter of fact, I am changing all my code to the new convention already, regardless of what Laurent does, because it really looks neat !

Anyway, Happpy birthday and please do make a beautiful cake game and share with us ! :P

445
Audio / Problem loading audio file from sf::InputStream
« on: February 09, 2012, 02:08:11 pm »
Hello,

I've got a problem with sf::InputStream.

I have a sound file which I can load and play normally, then I insert it into a package of files, try to load it again from the package with sf::InputStream and the sound plays but makes a huge noise 1-2 seconds before playing.

Tried to dump the file outside the package again, and it plays nice both in sfml and external players.

What could it be?

446
SFML projects / Yggdrasil
« on: January 16, 2012, 05:11:17 am »
Hello everyone,

With little time i just feel like sharing with you all what i am working on.

So, i am making a game called Yggdrasil (at least for now) that uses my dear Parabola Engine as its technology.

The game is a tower defense that is being developed full throttle and hopefully released [soon enough].

I encourage you to check my latest blog post: http://codetimestories.blogspot.com/2012/01/yggdrasil-development-1.html

There is already a demo you can try in the post. Feel free to try, read older blog posts , modify the demo and give your opinions!

Thanks for the support SFML community :)

447
Network / Enet and SFML Networking
« on: January 15, 2012, 12:49:19 pm »
Greetings.

I use Enet for networking right now, and i feel like continue using it, though, i seem to like how the sf::Packet is built.

I wonder if i can use the SFML data packets along with enet ? Anyone tried?

Thanks

448
Graphics / Integration of SPARK Particle 2 with SFML 2
« on: January 14, 2012, 01:20:38 am »
I've been trying to use SPARK 2 with SFML 2, but even though it is working already, it is not flawless. at all.

The main problem i wanted to ask about is the fact that i can't get everything to render together right.

The thing is that i am drawing sprites and shapes, then i draw particles and finally i draw some text. All the text i draw before the particles will appear normally, all the text i try to draw after the particle rendering will not appear at all.

I've tried to play with a few states while always doing the Push/Restore thing, both the sfml "push states" and the spark_gl module "push states".

What could it be? Thanks

449
Graphics / [SFML 2] Sprite Size
« on: January 12, 2012, 11:06:24 pm »
But that gets a factor and not a concrete dimension, shouldnt there be another way?

But i guess i can just make the same thing like this :)

450
Graphics / [SFML 2] Sprite Size
« on: January 12, 2012, 10:46:47 pm »
I've updated to the latest sfml 2 snapshot, and i wonder..

.. How do i resize my sprite? No SetSize anymore.. how?

Thanks :)

Pages: 1 ... 28 29 [30] 31 32 ... 40