This project benchmarks the performance of drawing images on a canvas using different rendering contexts (2d
and webgl2
).
- Switch between
2d
andwebgl2
rendering contexts. - Measure and log performance metrics.
- Optimize rendering using
WebGLContextAttributes
.
-
Clone the repository:
git clone <repository-url> cd rendering-context-benchmark
-
Install dependencies:
npm install
To start the development server:
npm run dev
To build the project:
npm run build
To preview the built project:
npm run preview
This project is licensed under the Apache-2.0 License.