Skip to content

Commit 4dcea9e

Browse files
authored
chore(🗑️): slightly adjust memory pressure for JSIRecorder (#3497)
1 parent a03228c commit 4dcea9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/skia/cpp/api/recorder/JsiRecorder.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ class JsiRecorder : public JsiSkWrappingSharedPtrHostObject<Recorder> {
316316
JSI_EXPORT_FUNC(JsiRecorder, play),
317317
JSI_EXPORT_FUNC(JsiRecorder, applyUpdates))
318318

319-
size_t getMemoryPressure() const override { return 16384; }
319+
// This has no basis in reality but since since these are private long-lived
320+
// objects, we think it is more than fine.
321+
size_t getMemoryPressure() const override { return 10 * 1024 * 1024; }
320322

321323
static const jsi::HostFunctionType
322324
createCtor(std::shared_ptr<RNSkPlatformContext> context) {

0 commit comments

Comments
 (0)