Somebody helps me out with the performance problem?
- liyonglove2d
- Prole
- Posts: 38
- Joined: Sun Mar 29, 2015 7:06 am
Re: Somebody helps me out with the performance problem?
I failed to upload the .love file, but you can download it here : http://pan.baidu.com/s/1qWsQiRU
Re: Somebody helps me out with the performance problem?
Nice game!
Gives 60 FPS (100-120 if vsync is off) on my system (about 4 years-old, CPU: AMD Athlon II X4 640, RAM: 12 GB, VIDEOCARD: Nvidia GeForce GTX 560 Ti, OS: Xubuntu 14.10 64 bit). Not very powerfull at these days as you see.
At first launch it loads a long while, at second - almost immediately. Perhaps you bake resources at first launch?
So I didn't encountered any problems with performance.
Gives 60 FPS (100-120 if vsync is off) on my system (about 4 years-old, CPU: AMD Athlon II X4 640, RAM: 12 GB, VIDEOCARD: Nvidia GeForce GTX 560 Ti, OS: Xubuntu 14.10 64 bit). Not very powerfull at these days as you see.
At first launch it loads a long while, at second - almost immediately. Perhaps you bake resources at first launch?
So I didn't encountered any problems with performance.
- liyonglove2d
- Prole
- Posts: 38
- Joined: Sun Mar 29, 2015 7:06 am
Re: Somebody helps me out with the performance problem?
thank u~arampl wrote:Nice game!
Gives 60 FPS (100-120 if vsync is off) on my system (about 4 years-old, CPU: AMD Athlon II X4 640, RAM: 12 GB, VIDEOCARD: Nvidia GeForce GTX 560 Ti, OS: Xubuntu 14.10 64 bit). Not very powerfull at these days as you see.
At first launch it loads a long while, at second - almost immediately. Perhaps you bake resources at first launch?
So I didn't encountered any problems with performance.
As I mentioned above that I reduced the count of animals and plants a lot, it's now not that bad anymore
And I do not bake any resources now coz it's hardly finished yet. The OS does the thing I guess...
I found that the library that I use to draw spriter animations uses a 1000x1000 canvas to do the work, and that can be a problem definitely, and surely contributes to the bad performance. And I found that there's memory leak or something in the game, which I never thought of before.... Too much work still has to be done
Anyway thank you guys~
- liyonglove2d
- Prole
- Posts: 38
- Joined: Sun Mar 29, 2015 7:06 am
Re: Somebody helps me out with the performance problem?
Another problem of this game......
I want your help so much!
http://love2d.org/forums/viewtopic.php?f=4&t=79948
THANKS A LOT!
I want your help so much!
http://love2d.org/forums/viewtopic.php?f=4&t=79948
THANKS A LOT!
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: Somebody helps me out with the performance problem?
I recorded some gameplay:
As far as I know, a method used in 3d games is using level of detail models: low-poly & smaller-texture models for objects in the distance. I imagine 2d games use the same. So what you might want to do is: instead of scaling down big images when zooming out, you pre-render smaller images and use those instead.
Also there doesn't seem to be a use of supporting zoom levels which allow making the world much smaller than the window.
Regarding git:
code.csdn.net appears to be extremely slow at times when used from Germany. It is often offline (again, from Germany) and it took me at least 10 tries at different times to pull your repository (91MB).
As far as I know, a method used in 3d games is using level of detail models: low-poly & smaller-texture models for objects in the distance. I imagine 2d games use the same. So what you might want to do is: instead of scaling down big images when zooming out, you pre-render smaller images and use those instead.
Also there doesn't seem to be a use of supporting zoom levels which allow making the world much smaller than the window.
Regarding git:
code.csdn.net appears to be extremely slow at times when used from Germany. It is often offline (again, from Germany) and it took me at least 10 tries at different times to pull your repository (91MB).
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Somebody helps me out with the performance problem?
We can't help you much without a .love file. Are you making sure to not draw everything in the map at once? Only draw what's inside the camera view.
Re: Somebody helps me out with the performance problem?
By the way, not to be rude, but this section of the forum is for showing off your games, not requesting help. With that in mind, you should primarily post updates about your code here.liyonglove2d wrote:Another problem of this game......
I want your help so much!
http://love2d.org/forums/viewtopic.php?f=4&t=79948
THANKS A LOT!
Also, if you post something in Support and Development, chances are it will be read by the same users who read this post. If you think nobody's answered it in too long (i.e. it goes to the next page, as a decent bookmark), then you can "bump" the question.
That being said, I do like your game! Good luck!
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
- liyonglove2d
- Prole
- Posts: 38
- Joined: Sun Mar 29, 2015 7:06 am
Re: Somebody helps me out with the performance problem?
What you said is absolutely right. I'll limit the scaling operation when the game is done, so it wont be a big problemqubodup wrote:I recorded some gameplay:
As far as I know, a method used in 3d games is using level of detail models: low-poly & smaller-texture models for objects in the distance. I imagine 2d games use the same. So what you might want to do is: instead of scaling down big images when zooming out, you pre-render smaller images and use those instead.
Also there doesn't seem to be a use of supporting zoom levels which allow making the world much smaller than the window.
Regarding git:
code.csdn.net appears to be extremely slow at times when used from Germany. It is often offline (again, from Germany) and it took me at least 10 tries at different times to pull your repository (91MB).
And I'm in China, you know, code.csdn.net is much faster than github. And I feel bad for the inconvenience
Last edited by liyonglove2d on Wed Apr 01, 2015 6:13 am, edited 2 times in total.
- liyonglove2d
- Prole
- Posts: 38
- Joined: Sun Mar 29, 2015 7:06 am
Re: Somebody helps me out with the performance problem?
Oh I'm so sorry, I just realized that my post is in a wrong section! I'll be more careful next time!davisdude wrote:By the way, not to be rude, but this section of the forum is for showing off your games, not requesting help. With that in mind, you should primarily post updates about your code here.liyonglove2d wrote:Another problem of this game......
I want your help so much!
http://love2d.org/forums/viewtopic.php?f=4&t=79948
THANKS A LOT!
Also, if you post something in Support and Development, chances are it will be read by the same users who read this post. If you think nobody's answered it in too long (i.e. it goes to the next page, as a decent bookmark), then you can "bump" the question.
That being said, I do like your game! Good luck!
Re: Somebody helps me out with the performance problem?
Hi there, it's me again.
liyonglove2d, if you accept, two advices:
1. If you ever plan to translate your game onto other languages, or give that chance to others, you'd better organize all text messages in separate files as variables. This way people who will translate your game will not have to deal with source code at all (and you can keep it closed if you want).
2. At first launch screen freezes for several seconds. It would have more professional look, if you first load and draw some splash screen then load all other stuff. And during loading also show progress bar. I see you already use coroutines, so you should know how to implement this.
Best regards.
liyonglove2d, if you accept, two advices:
1. If you ever plan to translate your game onto other languages, or give that chance to others, you'd better organize all text messages in separate files as variables. This way people who will translate your game will not have to deal with source code at all (and you can keep it closed if you want).
2. At first launch screen freezes for several seconds. It would have more professional look, if you first load and draw some splash screen then load all other stuff. And during loading also show progress bar. I see you already use coroutines, so you should know how to implement this.
Best regards.
Who is online
Users browsing this forum: No registered users and 1 guest