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?
Search found 12 matches
- Tue Dec 20, 2022 2:21 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
- Mon Dec 19, 2022 5:36 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
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
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
- Mon Dec 19, 2022 4:46 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
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...
- Mon Dec 19, 2022 4:11 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
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...
- Mon Dec 19, 2022 3:55 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
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...
- Mon Dec 19, 2022 3:40 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
- Mon Dec 19, 2022 3:32 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
Re: Performance issue: 80% usage of a 3080 12gb? Bruh
I think I fixed the namings, can you run it now?
- Sun Dec 18, 2022 1:07 pm
- Forum: Support and Development
- Topic: Performance issue: 80% usage of a 3080 12gb? Bruh
- Replies: 16
- Views: 4256
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?
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?
- Fri Dec 09, 2022 2:40 pm
- Forum: Support and Development
- Topic: How to make a collectible respawn?
- Replies: 6
- Views: 1470
Re: How to make a collectible respawn?
Like this?
- Fri Dec 09, 2022 2:12 pm
- Forum: Support and Development
- Topic: How to make a collectible respawn?
- Replies: 6
- Views: 1470