22 lines
804 B
C
22 lines
804 B
C
//
|
|
// MetalConfig.h
|
|
//
|
|
// Created by Andy Grundman.
|
|
// Ported to VoidLink by Acaki.
|
|
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
// When enabled, rendering occurs on the main application thread.
|
|
// This can make responding to UI events during redraw simpler
|
|
// to manage because UI calls usually need to occur on the main thread.
|
|
// When disabled, rendering occurs on a background thread, allowing
|
|
// the UI to respond more quickly in some cases because events can
|
|
// process asynchronously from potentially CPU-intensive rendering code.
|
|
#define RENDER_ON_MAIN_THREAD 0
|
|
|
|
// When enabled, the drawable's size updates automatically whenever
|
|
// the view resizes. When disabled, you can update the drawable's
|
|
// size explicitly outside the view class.
|
|
#define AUTOMATICALLY_RESIZE 1
|
|
|