Blog Post #75: Cairo X - Noodling with the Mouse

2019-10-01 Thread Ron Tarrant via Digitalmars-d-learn
Here's the second installment of the Nodes-n-noodles coverage in which we get the mouse involved: https://gtkdcoding.com/2019/10/01/0075-cairo-x-mouse-noodle.html

Re: Help making a game with transparency

2019-10-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 30 September 2019 at 23:52:27 UTC, Murilo wrote: {​ window.redrawOpenGlSceneNow;​ like I said on email, this is the ONLY thing you should to in the event loop to trigger the redraw. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT);​

Re: Help making a game with transparency

2019-10-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 30 September 2019 at 20:14:56 UTC, Murilo wrote: What are your pages that you want people subscribing to? I'm just trolling. And what is your patreon page? https://www.patreon.com/adam_d_ruppe but as you'll notice, it is currently $58. To reach "quit my job and work for y'all a

want to know precise GC benchmarks

2019-10-01 Thread a11e99z via Digitalmars-d-learn
does anybody some kind of benchmark to test conservative and precise GC? precise GC is better or not? is STW improving?

Re: want to know precise GC benchmarks

2019-10-01 Thread a11e99z via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 16:12:18 UTC, a11e99z wrote: does anybody some kind of benchmark to test conservative and precise GC? precise GC is better or not? is STW improving? and another question about GC and app parameters: program.exe “–DRT-gcopt=gc:precise parallel:4” “–DRT-scanDataSeg

Re: want to know precise GC benchmarks

2019-10-01 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 16:24:49 UTC, a11e99z wrote: why I want to know such info? CodinGame sometimes use time-limit for bot move for example 100ms, and bot will be disqualified in case no answer Simple solution: don't allocate every frame. The GC only runs when it needs to and it on

Re: Saving and loading large data sets easily and efficiently

2019-10-01 Thread JN via Digitalmars-d-learn
On Monday, 30 September 2019 at 20:10:21 UTC, Brett wrote: So it much more difficult than POD but would still be a little more work to right... hoping that there is something already out there than can do this. It should be I'm afraid there's nothing like this available. Out of serialization

Re: Help making a game with transparency

2019-10-01 Thread Murilo via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 12:46:58 UTC, Adam D. Ruppe wrote: On Monday, 30 September 2019 at 20:14:56 UTC, Murilo wrote: What are your pages that you want people subscribing to? I'm just trolling. And what is your patreon page? https://www.patreon.com/adam_d_ruppe but as you'll notice

Re: Help making a game with transparency

2019-10-01 Thread Murilo via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 12:45:35 UTC, Adam D. Ruppe wrote: On Monday, 30 September 2019 at 23:52:27 UTC, Murilo wrote: {​ window.redrawOpenGlSceneNow;​ like I said on email, this is the ONLY thing you should to in the event loop to trigger the redraw. glClear(GL_CO

how to determine if a function exists in a class?

2019-10-01 Thread TodNaz via Digitalmars-d-learn
Hello everyone! I have a question: how to determine if a function exists in a class? Is this possible with @pointer tagging?

Re: how to determine if a function exists in a class?

2019-10-01 Thread Alex via Digitalmars-d-learn
On Wednesday, 2 October 2019 at 06:06:20 UTC, TodNaz wrote: Hello everyone! I have a question: how to determine if a function exists in a class? Is this possible with @pointer tagging? Do you mean, like in examples of https://dlang.org/library/std/traits/has_member.html ?

Re: want to know precise GC benchmarks

2019-10-01 Thread Rainer Schuetze via Digitalmars-d-learn
On 01/10/2019 18:24, a11e99z wrote: > On Tuesday, 1 October 2019 at 16:12:18 UTC, a11e99z wrote: >> does anybody some kind of benchmark to test conservative and precise GC? >> precise GC is better or not? is STW improving? Without false pointers the precise GC is usually a bit slower (by a few