mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 05:47:43 +01:00
Add comments on caching (#1829)
This commit is contained in:
parent
a1b8ff9141
commit
5365dd14d8
2 changed files with 17 additions and 3 deletions
|
|
@ -20,6 +20,8 @@ public interface ISharedImmediateTexture
|
|||
/// <returns>An instance of <see cref="IDalamudTextureWrap"/> that is guaranteed to be available for the current
|
||||
/// frame being drawn.</returns>
|
||||
/// <remarks>
|
||||
/// <para>Do not cache the result of this function across draw calls for different frames.
|
||||
/// <see cref="ISharedImmediateTexture"/>s may be cached, but the performance benefit will be minimal.</para>
|
||||
/// <para>Calling outside the main thread will fail.</para>
|
||||
/// <para>This function does not throw.</para>
|
||||
/// <para><see cref="IDisposable.Dispose"/> will be ignored.</para>
|
||||
|
|
@ -35,6 +37,8 @@ public interface ISharedImmediateTexture
|
|||
/// <returns>An instance of <see cref="IDalamudTextureWrap"/> that is guaranteed to be available for the current
|
||||
/// frame being drawn.</returns>
|
||||
/// <remarks>
|
||||
/// <para>Do not cache the result of this function across draw calls for different frames.
|
||||
/// <see cref="ISharedImmediateTexture"/>s may be cached, but the performance benefit will be minimal.</para>
|
||||
/// <para>Calling outside the main thread will fail.</para>
|
||||
/// <para>This function does not throw.</para>
|
||||
/// <para><see cref="IDisposable.Dispose"/> will be ignored.</para>
|
||||
|
|
@ -50,6 +54,8 @@ public interface ISharedImmediateTexture
|
|||
/// <returns><c>true</c> if <paramref name="texture"/> points to the loaded texture; <c>false</c> if the texture is
|
||||
/// still being loaded, or the load has failed.</returns>
|
||||
/// <remarks>
|
||||
/// <para>Do not cache the result of this function across draw calls for different frames.
|
||||
/// <see cref="ISharedImmediateTexture"/>s may be cached, but the performance benefit will be minimal.</para>
|
||||
/// <para>Calling outside the main thread will fail.</para>
|
||||
/// <para>This function does not throw.</para>
|
||||
/// <para><see cref="IDisposable.Dispose"/> on the returned <paramref name="texture"/> will be ignored.</para>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue