Skip to content

Commit 5c26736

Browse files
committed
Renamed refresh_rate to refresh_style, a change that began in R7 but wasn't fully integrated throughout the paper until now.
1 parent b632179 commit 5c26736

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

source/history.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
\pnum
6868
Eliminated all \tcode{flush} and \tcode{mark_dirty} member functions. These only existed to allow users to modify surfaces externally. Implementations that wish to allow users to modify surfaces externally should provide and document their own functionality for how to do that. The errors, etc., are all implementation dependent anyway so a uniform calling interface provides no benefit at all in the current templated-design.
6969

70+
\pnum
71+
Renamed \tcode{enum class refresh_rate} to \tcode{refresh_style} to more accurately reflect its meaning. This was already done in parts of the R7; it is now complete.
72+
7073
\rSec1 [\iotwod.revisionhistory.r7] {Revision 7}
7174

7275
\pnum

source/output-surface.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
\begin{enumerate}
243243
\item Handle any implementation and host environment matters. If there are no pending implementation or host environment matters to handle, proceed immediately to the next action.
244244
\item Run the size change callback if doing so is required by its specification and it does not have a value equivalent to its default value.
245-
\item If the refresh rate requires that the draw callback be called then:
245+
\item If the refresh style requires that the draw callback be called then:
246246
\begin{enumeratea}
247247
\item Evaluate auto clear and perform the actions required by its specification, if any.
248248
\item Run the draw callback.

source/refresh-rate.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
%!TEX root = io2d.tex
2-
\rSec0 [\iotwod.refreshrate] {Enum class \tcode{refresh_rate}}
2+
\rSec0 [\iotwod.refreshstyle] {Enum class \tcode{refresh_style}}
33

4-
\rSec1 [\iotwod.refreshrate.summary] {\tcode{refresh_rate} summary}
4+
\rSec1 [\iotwod.refreshstyle.summary] {\tcode{refresh_style} summary}
55

66
\pnum
7-
The \tcode{refresh_rate} enum class describes when the \term{draw callback} (Table~\ref{tab:\iotwod.displaysurface.state.listing}) of a \tcode{display_surface} object shall be called. See Table~\ref{tab:\iotwod.refreshrate.meanings} for the meaning of each \tcode{} enumerator.
7+
The \tcode{refresh_style} enum class describes when the \term{draw callback} (Table~\ref{tab:\iotwod.displaysurface.state.listing}) of a \tcode{display_surface} object shall be called. See Table~\ref{tab:\iotwod.refreshstyle.meanings} for the meaning of each \tcode{refresh_style} enumerator.
88

9-
\rSec1 [\iotwod.refreshrate.synopsis] {\tcode{refresh_rate} synopsis}
9+
\rSec1 [\iotwod.refreshstyle.synopsis] {\tcode{refresh_style} synopsis}
1010

1111
\begin{codeblock}
1212
namespace std::experimental::io2d::v1 {
13-
enum class refresh_rate {
13+
enum class refresh_style {
1414
as_needed,
1515
as_fast_as_possible,
1616
fixed
1717
};
1818
}
1919
\end{codeblock}
2020

21-
\rSec1 [\iotwod.refreshrate.enumerators] {\tcode{refresh_rate} enumerators}
21+
\rSec1 [\iotwod.refreshstyle.enumerators] {\tcode{refresh_style} enumerators}
2222

2323
\begin{libreqtab2}
24-
{\tcode{refresh_rate} value meanings}
25-
{tab:\iotwod.refreshrate.meanings}
24+
{\tcode{refresh_style} value meanings}
25+
{tab:\iotwod.refreshstyle.meanings}
2626
\\ \topline
2727
\lhdr{Enumerator}
2828
& \rhdr{Meaning}
@@ -39,10 +39,10 @@
3939
\begin{note}
4040
The intention of this enumerator is that implementations will call the draw callback as little as possible in order to minimize power usage. Users can call \tcode{display_surface::redraw_required} to make the implementation run the draw callback whenever the user requires.
4141
\end{note}
42-
\\
42+
\\ \rowsep
4343
\tcode{as_fast_as_possible}
4444
& The draw callback shall be called as frequently as possible, subject to any limits of the execution environment.
45-
\\
45+
\\ \rowsep
4646
\tcode{fixed}
4747
& The draw callback shall be called as frequently as needed to maintain the \term{desired frame rate} (Table~\ref{tab:\iotwod.displaysurface.state.listing}) as closely as possible. If more time has passed between two successive calls to the draw callback than is required, it shall be called \term{excess time} and it shall count towards the \term{required time}, which is the time that is required to pass after a call to the draw callback before the next successive call to the draw callback shall be made. If the excess time is greater than the required time, implementations shall call the draw callback and then repeatedly subtract the required time from the excess time until the excess time is less than the required time. If the implementation needs to call the draw callback for some other reason, it shall use that call as the new starting point for maintaining the desired frame rate.
4848
\begin{example}

source/surface.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,13 @@
398398
If \tcode{true} the implementation shall call \tcode{clear}, which shall clear the back buffer, immediately before it executes the draw callback &
399399
\tcode{false} \\ \rowsep
400400

401-
\term{Refresh rate} &
402-
\tcode{refresh_rate} &
403-
The \tcode{refresh_rate} value that determines when the draw callback shall be called while output surface\tcode{::show} is being executed &
404-
\tcode{refresh_rate::as_fast_as_possible} \\ \rowsep
401+
\term{Refresh style} &
402+
\tcode{refresh_style} &
403+
The \tcode{refresh_style} value that determines when the draw callback shall be called while \tcode{basic_output_surface<T>::begin_show} is being executed &
404+
\tcode{refresh_style::as_fast_as_possible} \\ \rowsep
405405

406406
\term{Desired frame rate} &
407407
\tcode{float} &
408-
This value is the number of times the draw callback shall be called per second while output surface\tcode{::show} is being executed when the value of refresh rate is \tcode{refresh_rate::fixed}, subject to the additional requirements documented in the meaning of \tcode{refresh_rate::fixed} (Table~\ref{tab:\iotwod.refreshrate.meanings}) \\ \rowsep
409-
408+
This value is the number of times the draw callback shall be called per second while \tcode{basic_output_surface<T>::begin_show} is being executed when the value of refresh style is \tcode{refresh_style::fixed}, subject to the additional requirements documented in the meaning of \tcode{refresh_style::fixed} (Table~\ref{tab:\iotwod.refreshstyle.meanings})
409+
\\
410410
\end{libreqtab4b}

0 commit comments

Comments
 (0)