Search found 634 matches

by BrotSagtMist
Tue May 21, 2024 1:55 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 14
Views: 464

Re: How do you really tell if your game has a memory leak?

I read that as "the man is not dead, he would be alive if his heart would be beating" Yea no shit, if you adjust GC its not a problem, but then you also dont use the same code. And the point is of this code having a problem, not the _fixed_ one. In other news, this crashes my computer and ...
by BrotSagtMist
Tue May 21, 2024 1:16 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 14
Views: 464

Re: How do you really tell if your game has a memory leak?

Even if your entire program is just Font = love.graphics.newFont( 12) Font = love.graphics.newFont( 21) In my book thats a memory leak, those two lines cause a memory leak. Because it fits the definiton of "not freeing unused data". And thats the whole thing, this line, it fits so it is. N...
by BrotSagtMist
Mon May 20, 2024 11:52 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 14
Views: 464

Re: How do you really tell if your game has a memory leak?

There is no fancy wording here. Take the first line from wikipedia "a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations[1] in a way that memory which is no longer needed is not released." Which i read as a clear black and whit...
by BrotSagtMist
Mon May 20, 2024 11:04 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 14
Views: 464

Re: How do you really tell if your game has a memory leak?

This is the very definition of a memory leak.
And of course its not anymore if you call garbage collect, i mean.... thats the point.
What are you trying to say here?
by BrotSagtMist
Mon May 20, 2024 6:44 pm
Forum: General
Topic: Pool(Billiards) physics (Need help)
Replies: 5
Views: 241

Re: Pool(Billiards) physics (Need help)

This is already cooler than 90% of what you find in comercial pool games for old consoles.

The problem here is that this kind of game is all about physics, you gotta have to nail it or else its garbage.
So pool is not the smartest starting point to get into game dev.
by BrotSagtMist
Mon May 20, 2024 3:31 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 14
Views: 464

Re: How do you really tell if your game has a memory leak?

Practical example for a memory leak: Have a textbox, have it have a zoom in/out function. We reload our font with Font = love.graphics.newFont( zoom) _Font_ is overwriten each time so logically we would assume the old font data is discardet as it is no longer referenced. This is not the case because...
by BrotSagtMist
Sun May 19, 2024 5:35 pm
Forum: Support and Development
Topic: Screen Size behavior
Replies: 1
Views: 114

Re: Screen Size behavior

Somewhere in this player:draw mess you call either translate or scale which of course makes all following positions incorrect.
by BrotSagtMist
Wed May 15, 2024 5:30 pm
Forum: Support and Development
Topic: whats the best way to make general colision detection?
Replies: 5
Views: 288

Re: whats the best way to make general colision detection?

Thats a broad question and largely depends on what type of game, how many objects are on the screen or even how many pixels the game has. Losely there are 3 approaches to this: Mapping based - Where the entire viewable area is mapped to a table, that means around 10-100 pixel are grouped together as...
by BrotSagtMist
Sat May 04, 2024 6:52 pm
Forum: Support and Development
Topic: Bottons activating when I maintain them on touchscreen
Replies: 3
Views: 697

Re: Bottons activating when I maintain them on touchscreen

Putting this in the touchpress callback looks like an error to me.
Put this in the update loop instead.
by BrotSagtMist
Fri May 03, 2024 4:55 pm
Forum: General
Topic: Need some help guys!
Replies: 5
Views: 1108

Re: Need some help guys!

+1 is the the only math most games need.