Search found 18 matches

by Jaston
Tue Jun 04, 2019 10:21 pm
Forum: Games and Creations
Topic: Vacant Kingdom - A Bullet Hell Action-RPG
Replies: 5
Views: 6114

Re: Vacant Kingdom - A Bullet Hell Action-RPG

Your game is really well polished. Its also so smooth. How did you avoid stuttering in love with so msny bullets on the screen? I like the mix of rpg and bullet hell as well. The intro can be a few too many questions when the game calibrates for you. I got the urge to think please no more questions ...
by Jaston
Tue Feb 12, 2019 7:24 pm
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Re: Class Best Practices

If the GC is responsible for the stuttering, the already mentioned reuse of tables may get rid of it. To find out if it's the GC, periodically print the result of collectgarbage('count') (like once a second or so). If the value is repeatedly growing and shrinking, you will probably gain something f...
by Jaston
Tue Feb 12, 2019 5:03 am
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Re: Class Best Practices

Maybe try binary insertion sort? Keeps your array sorted at all times, without having to iterate over all elements. Implementing the __lt metamethod for depth-sorted objects may result in a small perf boost too. @grump - I did this and my sort time went down by 30x!!! :crazy: This is just normal in...
by Jaston
Thu Jan 31, 2019 3:08 am
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Re: Class Best Practices

How do I make the profiler look at a specific function only to figure out how much time it takes? So far profiler, piefiller can't work in real time well for my game. So do I try to just run it on a smaller subset to test the problem areas? Aka start wide then narrow it down? Also how can one detect...
by Jaston
Wed Jan 30, 2019 11:03 pm
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Re: Class Best Practices

@pgimeo - I use next in my sort algorthim for my objects :(. I have much to revise. I will go to the drawing board and let you know what I found out.

Thank you everyone for your help thus far. I will being the experiments.
by Jaston
Tue Jan 29, 2019 5:17 am
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Re: Class Best Practices

@monkyyy - I watched the videos and understand at an extremely high level what they are trying to do. But are there any practical examples? Also how can I reduce the data needed to process each zombie to such a tiny level. Each one of them needs a bunch of variables currently in order to be updated ...
by Jaston
Sat Jan 26, 2019 8:52 pm
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Re: Class Best Practices

Thanks grump for detailed response. I will try to answer your questions to give you some context. Jaston wrote: ↑Fri Jan 25, 2019 7:54 pm In my game I have 1000's of zombies that move around the level. How fast is it currently? I'm asking because most of your questions are concerned with micro-optim...
by Jaston
Sat Jan 26, 2019 12:54 am
Forum: Support and Development
Topic: Class Best Practices
Replies: 16
Views: 4496

Class Best Practices

Hi Everyone, In my game I have 1000's of zombies that move around the level. I want to push as many as I can on screen as possible. I realize since I'm new to lua I might not be doing things as efficiently as possible. This has led me to the following clarifying questions that I need help on: The be...
by Jaston
Sat Jan 19, 2019 1:03 am
Forum: Support and Development
Topic: Switch Pro Controller support for PC
Replies: 4
Views: 1700

Re: Switch Pro Controller support for PC

Thank you for the help :). I currently use the hot swapping in my game just incase a player losses battery or unplugs. Maybe its something they can fix in 11.3 or 11.4
by Jaston
Fri Jan 18, 2019 7:53 pm
Forum: Support and Development
Topic: Switch Pro Controller support for PC
Replies: 4
Views: 1700

Switch Pro Controller support for PC

I have been trying to get my pro controller to work with love2d. I loaded in all the sdl2 default gamepad mappings but it does the following: 1) does not register gamepad presses 2) indicates not vibration supported I wondered over to steam and turned on switch pro controller support in steam. Now p...