cosmograph-org / cosmos

GPU-accelerated force graph layout and rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graph nodes are in blury format and the labels are illegible

sadnzr opened this issue · comments

Hello!
I use cosmograph in my app and unfortunately, tgraph nodes are in blury format and the labels are illegible , is this related to vga of the server?
or require the gpu module in production space?
graph

@sadnzr Cosmograph relies on your machine's GPU, so it's probably an issue with your GPU itself or with the drivers. We've never seen such behavior before, can you provide with technical details of your GPU and OS?

@rokotyan my server does not have any GPU, it seems I must use GPU module explicitly! but is it possible to use good VGA card instead?

Dear Nikita!
I have another problem! in entrance of the graph page the zoom level does not work properly!
this is all my configs:
<Cosmograph
ref={cosmograph}
className="cosmographStyle"
showLabelsFor={showLabelsFor}
nodeLabelColor={theme.palette.primary.light}
hoveredNodeLabelColor={theme.palette.primary.dark}
nodeSize={1}
nodeScale={0.5}
nodeColor={(n)=>n.color ? n.color : theme.palette.primary.main}
linkArrows={false}
linkColor={theme.palette.primary.contrastText}
linkDistance={10}
linkSpring={2}
linkWidth= {l => l.width ?? null}
randomSeed={10}
initialZoomLevel={5}
gravity={0.5}
fitViewDelay={50}
friction={0.8}
repulsion={1}
repulsionTheta={0.3}
useQuadtree ={true}
decay={1000}
disableSimulation={false}
fitViewOnInit={true}
backgroundColor={theme.palette.info.dark}
onClick={onCosmographClick}
/>
Screenshot_20240422_135149 png

@sadnzr Can you please create an example on CodeSandbox or StackBlitz? That will enable us to take a look at the issue

Stale issue, closing