- Posts: 12
- Thank you received: 4
Guadiana lines
1 week 2 days ago #70
by rosogon
Guadiana lines was created by rosogon
Hi,
In the attached image you can see an "error" drawing lines in navegame. I do not know if it is a problem of the code or a bug. It is trivial to replicate. Run the game and shoot at the bottom.
It also happens horizontally at certain ys, although no line is drawn at all (I guess due to the same as above).
In the attached image you can see an "error" drawing lines in navegame. I do not know if it is a problem of the code or a bug. It is trivial to replicate. Run the game and shoot at the bottom.
It also happens horizontally at certain ys, although no line is drawn at all (I guess due to the same as above).
Please Log in or Create an account to join the conversation.
1 week 2 days ago - 1 week 2 days ago #71
by Franck
Replied by Franck on topic Guadiana lines
I just had a quick look. The draw_laser() function is called all the time, even when not shooting. So it is probably drawing and clearing right away displaying only a partial line.
The correct way should be to call the function only once at the frame when the key down happens and clearing at the frame when the key up happens.
(Edit) Or at least clear line in the vertical blanking, right after v sync to avoid clearing during the display scan.
The correct way should be to call the function only once at the frame when the key down happens and clearing at the frame when the key up happens.
(Edit) Or at least clear line in the vertical blanking, right after v sync to avoid clearing during the display scan.
Last edit: 1 week 2 days ago by Franck.
Please Log in or Create an account to join the conversation.
6 days 12 hours ago #74
by rosogon
Replied by rosogon on topic Guadiana lines
Thanks Franck,
You are right, although I am having some problems to make it work properly: it looks there is a similar issue to the others I posted when returning a custom type. I will try to get a reproducible example.
You are right, although I am having some problems to make it work properly: it looks there is a similar issue to the others I posted when returning a custom type. I will try to get a reproducible example.
Please Log in or Create an account to join the conversation.
6 days 12 hours ago #75
by rosogon
Replied by rosogon on topic Guadiana lines
This message contains secure information
Please Log in or Create an account to join the conversation.
4 days 12 hours ago #77
by rosogon
Replied by rosogon on topic Guadiana lines
Hi,
> it looks there is a similar issue to the others I posted when returning a custom type
Returning a custom type is working OK for me right now. You can forget about it for the moment
> it looks there is a similar issue to the others I posted when returning a custom type
Returning a custom type is working OK for me right now. You can forget about it for the moment
Please Log in or Create an account to join the conversation.
Time to create page: 0.169 seconds