Capping framerate of animations, while keeping game at high fps rate
I was wondering how i could cap the character animations to around 8-16 FPS to have an anime feeling, while keeping the frame-rates for the actual game at around 60-75FPS.
asked Feb 09 '15 at 05:47 PM in Rendering
Framerates for an animation versus game framerates are two completely different concepts that simply use the same terminology.
The frame rate of your animation is determined by how many key frames are stored in the animation itself. To get the look you want for your animations, you wouldn't necessarily only have 8 - 16 frames, you could simply hold onto a specific keyframe for longer. In fact the easiest way to achieve this look would be to double the number of frames not reduce them. If you duplicate every frame so that it stays on screen longer, it would give the look of having less frames.
The framerate of a game is determined by the amount of information you are processing per draw call. A lot of different things factor into the game's FPS. Polycount, post processing effects, lighting, particles etc. Also each player's computer will give them a different degree of performance. The only way to guarantee a target FPS is to release your game on console where everyone has the same hardware running the game.
Finally everyone has the misconception that high FPS in games is the be all and end all when its really not. Consistent FPS is what matters. The human eye cannot see anything above 24 - 30 fps. In traditional animation, you're pretty much always going to get 24 fps because that's the number of frames they draw to give the smoothest presentation. In video games its different because everything is rendered in real time. You're not simply flipping through a series of static pages at a pre-determined frame rate. Every area of the game is going to have varying degrees of scene complexity and its that complexity that causes slowdown. Good design means that you can guarantee that the framerate on the vast majority of video cards is never going to drop below 24 frames per second. Higher is absolutely useless, its just means that your videocard is better than what you need to run the game. The only reason you want a video card capable of 60fps is to guarantee that it has so much power that you'll never dip below 24fps. A simple analogy would be the movie Speed staring Keanu Reeves and Sandra Bullock. There's a bomb on their bus that will go off if they drop below 50 miles per hour. For the entire movie they make sure they're driving at 60 - 70mph. In all honesty they could have driven at 51mph the entire time and technically they would have been safe but due to inconsistencies in the road like old ladies pushing baby carriages full of cans, they drive a lot faster than they should because they don't want to explode. FPS in games is like that. The extra speed gains you nothing, but its better to have more to guarantee you don't dip below 24.
Ok guys so I did a test myself going with the assumption that the default settings weren't working and found that there are some extra import options(Animation Length) when importing an animation that might help you. Also want to mention I'm running the latest update on 4.7.
At the end however it turns out the default settings worked fine as well so I'm not sure what problem you're having but here's a video showing my setup and results: https://youtu.be/C4XLp5GJ08w
Follow this question
Once you sign in you will be able to subscribe for any updates here