Skip to content

Commit

Permalink
Merge pull request #30 from Timothy-LiuXuefeng/dev
Browse files Browse the repository at this point in the history
chore: update to version v1.1.1
  • Loading branch information
Timothy-Liuxf authored Mar 27, 2022
2 parents 2e758ec + b74709a commit 93f3c27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions CSharp/FrameRateTask/FrameRateTask.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<FileVersion>1.1.0.0</FileVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<VersionPrefix>1.1.0</VersionPrefix>
<FileVersion>1.1.1.0</FileVersion>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<VersionPrefix>1.1.1</VersionPrefix>
<RepositoryUrl>https://github.com/Timothy-LiuXuefeng/FrameRateTask</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>TimothyLiuXuefeng</Authors>
Expand All @@ -15,6 +15,7 @@
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageProjectUrl>https://github.com/Timothy-LiuXuefeng/FrameRateTask</PackageProjectUrl>
<Nullable>disable</Nullable>
<Description>Frame rate stabilizer, a task executor which executes tasks at a stable frame rate.</Description>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@

## Introduction

This project is initially written for [THUAI4](https://github.com/eesast/THUAI4) to support some functions.
Frame rate stabilizer, a task executor which executes tasks at a stable frame rate.

This project intends to build an engine to support to execute tasks which need to be execute repeatedly and frequently, and the time interval between two executing need to be accurately stable. And this engine can also provide the real-time frame rate. Up to now, this time interval should be no more than 1 second. It can be used to control the framerate of a game, and control the frame rate of communication through network, etc.

The source code of the dll is in the project FrameRateTask, and the example of usage is in the project Test.

> 本项目的编写最初是为了 [THUAI4](https://github.com/eesast/THUAI4) 来实现某些特定功能。
This project is initially written for [THUAI4](https://github.com/eesast/THUAI4) to support some functions.

> 帧率稳定器——以固定帧率执行任务。
>
> 本项目旨在构建一个可以重复、高频率执行一个任务的引擎,并且每两次执行的时间间隔有精确和稳定的需求。并且,本引擎还可以提供实时的帧率。目前本引擎仅支持的两次执行的时间间隔小于一秒钟。本引擎可以用来控制游戏帧数、网络通信帧率,等等。
>
> dll 的源代码在 FrameRateTask 项目中,使用示例代码在 Test 项目中。
>
> 本项目的编写最初是为了 [THUAI4](https://github.com/eesast/THUAI4) 来实现某些特定功能。


Expand Down Expand Up @@ -68,7 +72,7 @@ Copyright (C) 2022 Timothy-LiuXuefeng
> ```
>
> + `loopCondition`: The condition to judge if the loop will continue. 是否继续循环的判断条件。
> + `loopToDo`: The loop body. If it returns false, jump out the loop. 循环体。如果返回 `false`,跳出循环。
> + `loopToDo`: The loop body. If it returns false, jump out of the loop. 循环体。如果返回 `false`,跳出循环。
> + `timeInterval`: Time interval between two executing in milliseconds. 两次循环体执行的时间间隔,单位是毫秒。
> + `finallyReturn`: Specify the last thing to do and the return value. 指定最后要做的事情和返回值。
> + The maximum time in total for this task in milliseconds, `long.MaxValue` for default. 整个任务执行的最长时间,单位是毫秒。
Expand Down

0 comments on commit 93f3c27

Please sign in to comment.