Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tyanmahou committed Jan 5, 2024
1 parent 3f270fb commit 9671626
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Re-Abyss/app/utils/FPS/FrameRateController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

namespace abyss
{
/// <summary>
/// フレームレート制御
/// </summary>
class FrameRateController :
public AddonSingleton<FrameRateController>,
public s3d::IAddon
Expand All @@ -13,10 +16,21 @@ namespace abyss
using Clock = std::chrono::steady_clock;
using TimePoint = std::chrono::time_point<Clock>;
public:
/// <summary>
/// フレームレートのセット
/// noneの場合は垂直同期
/// </summary>
/// <param name="value"></param>
static void Set(const s3d::Optional<Fps>& value)
{
Instance()->set(value);
}
/// <summary>
/// リフレッシュレート以下の場合はフレームレートのセット
/// そうでない場合、もしくはnoneなら垂直同期
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
static bool SetIfLessThanRefreshRate(const s3d::Optional<Fps>& value)
{
return Instance()->setIfLessThanRefreshRate(value);
Expand Down

0 comments on commit 9671626

Please sign in to comment.