-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/frontend/src/pages/rendering/instructions/RenderGroup.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type React from 'react'; | ||
import { memo } from 'react'; | ||
import type { BaseInstruction } from './Instructions'; | ||
import { InstructionSection } from './shared/InstructionSection'; | ||
|
||
export const RenderGroupView: React.FC<BaseInstruction> = memo(({ drawTextures, type, action }) => { | ||
return ( | ||
<div className="flex flex-col"> | ||
<div className="items-left flex w-full flex-col justify-between gap-4"> | ||
<div> | ||
Render groups are used to group instructions together. They can be used to optimise your scene by reducing the | ||
amount of instruction rebuilds that need to be done. | ||
<br /> | ||
<br /> | ||
You can learn more about render groups{' '} | ||
<a | ||
href="https://pixijs.com/8.x/guides/advanced/render-groups" | ||
className="text-primary underline" | ||
target="_blank" | ||
> | ||
here | ||
</a> | ||
</div> | ||
<InstructionSection type={type} action={action} drawTextures={drawTextures} /> | ||
</div> | ||
</div> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters