Update README.md
This commit is contained in:
13
README.md
13
README.md
@@ -75,7 +75,7 @@ All of the following use the [metal theme](./themes/metal.lua)
|
||||

|
||||

|
||||

|
||||

|
||||
[]
|
||||

|
||||
|
||||
## Build Profiles
|
||||
@@ -173,11 +173,6 @@ local button2 = FlexLove.new({
|
||||
|
||||
```
|
||||
|
||||
**Best for:**
|
||||
- Complex UIs with many persistent elements
|
||||
- Elements that maintain state over time
|
||||
- UIs that don't change frequently
|
||||
|
||||
#### Immediate Mode
|
||||
In immediate mode, you recreate UI elements every frame based on your application state. This approach can be simpler for dynamic UIs that change frequently.
|
||||
There is of course some overhead for this, which is why it is not the default behavior.
|
||||
@@ -205,12 +200,6 @@ local button2 = FlexLove.new({
|
||||
|
||||
```
|
||||
|
||||
**Best for:**
|
||||
- Simple UIs that change frequently
|
||||
- Procedurally generated interfaces
|
||||
- Debugging and development tools
|
||||
- UIs driven directly by application state
|
||||
|
||||
You should be able to mix both modes in the same application - use retained mode for your main UI and immediate mode for debug overlays or dynamic elements,
|
||||
though this hasn't been tested.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user