Search found 12 matches

by Krauly
Tue Dec 20, 2022 2:21 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

I see, this is gold thank you.
Fixed those, now I will hunt the other auto inflicted griefs xd
One more question:
When should I declare variables inside :load and when outside?
by Krauly
Mon Dec 19, 2022 5:36 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

I tought I fixed the physics and the load assets problem, but I f up something... hard.
If I run the the bat it goes smoother, even if still lagging sometimes.
But if I run the .love I get 1 fps, lol Im so bad at this
by Krauly
Mon Dec 19, 2022 4:46 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

Its simple: have the player check if it touches a diamond and not have each freaking diamond check if it collides with each freaking thing on the entire map. Colliding on tiles is quite easy: Its just a [x][y] map after all. All you need to do is fill such grid with all diamond and then check the p...
by Krauly
Mon Dec 19, 2022 4:11 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

No you dont, you dont need physics on not movable objects, they do not interact with the world, the player interacts with them. In short you should not need to update these ever. As for memory, as i thought: line 53 in player.lua You are telling it to shove this picture into ram each frame. Like th...
by Krauly
Mon Dec 19, 2022 3:55 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

Youre still having naming problems. Anyway, its quite clear what happens: Diamond.updateAll(dt) is what causes an insta freeze. I think you are trying to apply physics to non movable objects here, eh? I need physics in order to get a hitbox, so when player collides with a diamond it calls the fucnt...
by Krauly
Mon Dec 19, 2022 3:40 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

GVovkiv wrote: Mon Dec 19, 2022 3:33 pm
Krauly wrote: Mon Dec 19, 2022 3:32 pm I think I fixed the namings, can you run it now?
now there is no file to run
Let me send you the zip instead of the .love, dunno why it wont run if I .love it
by Krauly
Mon Dec 19, 2022 3:32 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Re: Performance issue: 80% usage of a 3080 12gb? Bruh

I think I fixed the namings, can you run it now?
by Krauly
Sun Dec 18, 2022 1:07 pm
Forum: Support and Development
Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
Replies: 16
Views: 3277

Performance issue: 80% usage of a 3080 12gb? Bruh

What's so wrong with my code?
I have a I9-12900k, RTX3080 12GB, 64GB Ram and sometimes I drop from 240+fps down to 50-60 visually even less cause it starts to stutter.
In the task manager I noticed GPU at 80% usage like wut?
by Krauly
Fri Dec 09, 2022 2:40 pm
Forum: Support and Development
Topic: How to make a collectible respawn?
Replies: 6
Views: 1290

Re: How to make a collectible respawn?

Like this?
by Krauly
Fri Dec 09, 2022 2:12 pm
Forum: Support and Development
Topic: How to make a collectible respawn?
Replies: 6
Views: 1290

Re: How to make a collectible respawn?

knorke wrote: Fri Dec 09, 2022 7:19 am Can you post the complete code? It would be easier to debug if we can run it.
function Coin:checkRemove(st)
Is "st" a typo?
Yep fixed it xd