Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const MOCK_UNITY_CONTEXT = {
copy_texture_support: 'Basic, Copy3D, DifferentTypes, TextureToRT, RTToTexture',
editor_version: '2022.1.23f1',
install_mode: 'Store',
is_main_thread: true,
rendering_threading_mode: 'LegacyJobified',
target_frame_rate: '-1',
// Extra data is still valid and preserved
Expand Down Expand Up @@ -45,6 +46,7 @@ describe('UnityContext', () => {
value: '2022.1.23f1',
},
{key: 'install_mode', subject: 'Install Mode', value: 'Store'},
{key: 'is_main_thread', subject: 'Is Main Thread', value: true},
{
key: 'rendering_threading_mode',
subject: 'Rendering Threading Mode',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export function getUnityContextData({data}: {data: UnityContext}): KeyValueListD
subject: t('Install Mode'),
value: data.install_mode,
};
case UnityContextKey.IS_MAIN_THREAD:
return {
key: ctxKey,
subject: t('Is Main Thread'),
value: data.is_main_thread,
};
case UnityContextKey.RENDERING_THREADING_MODE:
return {
key: ctxKey,
Expand Down
2 changes: 2 additions & 0 deletions static/app/types/event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export enum UnityContextKey {
COPY_TEXTURE_SUPPORT = 'copy_texture_support',
EDITOR_VERSION = 'editor_version',
INSTALL_MODE = 'install_mode',
IS_MAIN_THREAD = 'is_main_thread',
RENDERING_THREADING_MODE = 'rendering_threading_mode',
TARGET_FRAME_RATE = 'target_frame_rate',
}
Expand All @@ -537,6 +538,7 @@ export interface UnityContext {
[UnityContextKey.COPY_TEXTURE_SUPPORT]: string;
[UnityContextKey.EDITOR_VERSION]: string;
[UnityContextKey.INSTALL_MODE]: string;
[UnityContextKey.IS_MAIN_THREAD]: boolean;
[UnityContextKey.RENDERING_THREADING_MODE]: string;
[UnityContextKey.TARGET_FRAME_RATE]: string;
type: 'unity';
Expand Down
Loading