performance too LOW!
Re: performance too LOW!
dont optimize unless you really, really need it
Re: performance too LOW!
but why? optimizing isn't that hard and it might pay off if one decides to the port the game to mobile devices with the unofficial ports of löveDoctory wrote:dont optimize unless you really, really need it
Re: performance too LOW!
It is just one of those things that people throw around a lot without giving it much thought. Sure, it is true that Spending 90% of your time optimizing is not a very smart thing to do, but not thinking about it at all will land you in a lot of trouble. It is a very common thing to read in post mortems from developers who actually released a game, that they wish that they spent more time optimizing.jjmafiae wrote:but why? optimizing isn't that hard and it might pay off if one decides to the port the game to mobile devices with the unofficial ports of löveDoctory wrote:dont optimize unless you really, really need it
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: performance too LOW!
In programming, everything is a tradeoff. Making the code run faster often means making it less readable. On the other hand, readable code can be done faster easily, but turning "optimized" code into readable is much more time consuming. For that reason, make the code easy to read first, and then add optimizations when you need them. 97% of the time you don't need them.jjmafiae wrote:but why? optimizing isn't that hard and it might pay off if one decides to the port the game to mobile devices with the unofficial ports of löveDoctory wrote:dont optimize unless you really, really need it
To answer with your own example: let's assume that you do a lot of "clever" optimizations and the code runs super fast on the desktop (but it is not very readable). But then you try it on mobile it throws an error. Now you have two problems: you must find that error, and at the same time deal with difficult to read code. If you had let the readable code with no optimizations, you would have had only one of those problems (or even none - it's possible that the clever optimizations were what was making the mobile version fail in the first place).
When I write def I mean function.
Re: performance too LOW!
+1
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: performance too LOW!
What kikito said, plus: optimising naively is a great way to make your game perform worse, especially if you take into account other platforms.
If you want to optimise so badly, try instead looking at ways how you can your big ohs smaller.
If you want to optimise so badly, try instead looking at ways how you can your big ohs smaller.
Help us help you: attach a .love.
Re: performance too LOW!
Getting some optimizations engine wise wouldn't hurt though, there is probably some inefficient systems here and there
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 14 guests