Godot Version
4.5
Question
why the lines draw are not smooth like why do they seem like dotted why no smoothness and same thing happens on mobile devices too.
I am using stretch mode → to canvas items and using filter nearest
4.5
I am using stretch mode → to canvas items and using filter nearest
Because you are using the nearest filter. This essential makes everything look pixelated, you are telling the engine NOT to smooth anything out, but to render it basically pixel perfect.
Enable 2d anti aliasing in project settings.
You can use this add-on I made if 2D MSAA is not an option (e.g. in the Compatibility renderer, or for performance reasons):
this is amazing