Skip to content

Commit

Permalink
Add entry about freezes when loading timelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeVR authored Jan 26, 2024
1 parent d2e4987 commit 7036629
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions documentation/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ if Dialogic.Text.is_textbox_visible():
else:
Dialogic.Text.show_text_boxes()
```


## I encounter a small lag or freeze when starting the dialogue!

Preloading a style can be very useful using its `prepare` method.\
This can be called on all styles you will need during the splash screen of your game.

```gdscript
var style: DialogicStyle := load("res://path/to/my/style.tres")
style.prepare()
```

Last, be aware that Godot's shader compiler runs on demand; whenever new shaders need to be loaded in a style, it will compile, causing a freeze.\
Hence, it's recommended to compile these ahead of time if you still run into problems still.

0 comments on commit 7036629

Please sign in to comment.