Skip to content

Instantly share code, notes, and snippets.

View swordlegend's full-sized avatar

SLegend swordlegend

  • perfect world
  • beijing in china
View GitHub Profile
@swordlegend
swordlegend / PlayerLoop.cs
Created September 24, 2024 06:38 — forked from LotteMakesStuff/PlayerLoop.cs
Player Loop Visualizer: Built to explore the new PlayerLoopSystem api in Unity 2018.1b2. This tool shows you all the PlayerLoop systems that unity uses to update a frame, and demos how to add your own and even remove systems from the player loop. For more info see the patreon post https://www.patreon.com/posts/unity-2018-1-16336053
// Put this in an editor folder
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Experimental.LowLevel;
using UnityEngine.Profiling;
@swordlegend
swordlegend / flutter-tinder-cards.dart
Created November 7, 2023 14:43 — forked from xrr2016/flutter-tinder-cards.dart
使用 Flutter 实现探探卡片布局
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
List<String> images = [
'https://gank.io/images/5ba77f3415b44f6c843af5e149443f94',
'https://gank.io/images/02eb8ca3297f4931ab64b7ebd7b5b89c',
'https://gank.io/images/31f92f7845f34f05bc10779a468c3c13',
'https://gank.io/images/b0f73f9527694f44b523ff059d8a8841',
@swordlegend
swordlegend / WebGL-WebGPU-frameworks-libraries.md
Created September 7, 2023 14:41 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries

Name Stars Last Commit Description
three.js ![GitHub Rep
@swordlegend
swordlegend / ProfilerText.cs
Created January 13, 2023 11:14 — forked from sapphire-al2o3/ProfilerText.cs
UnityでプロファイラーのCPU表示で選択している行をコピーする
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
using UnityEditorInternal.Profiling;
public class ProfilerText : Editor
{
[MenuItem("Editor/Print Profiler Text")]
static void Print()
{