I am using @pixi/node
package in node js environment using Xvfb as Display server and headless-gl for webgl.
pixi is using WebGl renderer and that is fine.
I have a Nvidia Tesla T4 GPU. Drivers are installed but i am not sure if pixi is using the GPU to render. As renderer.render
method takes a significant time.
What else do i have to add or configure to make pixi js fast in my headless environment? In my local machine which also has native GPU (Apple M1 Max) and it works ultra fast
I have this dockerfile setup
FROM nvidia/cuda:12.5.0-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND noninteractive
# Add dependencies for gl, canvas and xvfb
RUN apt-get update
&& apt-get install -y build-essential libcairo2-dev libgif-dev libglew-dev libglu1-mesa-dev libjpeg-dev
libpango1.0-dev librsvg2-dev libxi-dev pkg-config xvfb
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8080 8080
CMD xvfb-run -a yarn run start
Arjun Bhatt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.